Merge branch 'afflictFix' into 'master'

Afflict use :

See merge request core-developers/forge!866
This commit is contained in:
Michael Kamensky
2018-08-17 15:49:52 +00:00
12 changed files with 12 additions and 13 deletions

View File

@@ -1607,7 +1607,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|| keyword.startsWith("Fabricate") || keyword.startsWith("Soulshift") || keyword.startsWith("Bushido")
|| keyword.startsWith("Crew") || keyword.startsWith("Tribute") || keyword.startsWith("Absorb")
|| keyword.startsWith("Graft") || keyword.startsWith("Fading") || keyword.startsWith("Vanishing")
|| keyword.startsWith ("Poisonous")
|| keyword.startsWith ("Afflict") || keyword.startsWith ("Poisonous")
|| keyword.startsWith("Renown") || keyword.startsWith("Annihilator") || keyword.startsWith("Devour")) {
final String[] k = keyword.split(":");
sbLong.append(k[0] + " " + k[1] + " (" + inst.getReminderText() + ")");
@@ -1627,7 +1627,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|| keyword.equals("Horsemanship") || keyword.equals("Infect")|| keyword.equals("Persist")
|| keyword.equals("Phasing") || keyword.equals("Shadow")|| keyword.equals("Skulk")
|| keyword.equals("Undying") || keyword.equals("Wither")
|| keyword.startsWith ("Afflict")
|| keyword.startsWith ("Rampage") || keyword.startsWith("Cascade")) {
if (sb.length() != 0) {
sb.append("\r\n");

View File

@@ -2109,7 +2109,7 @@ public class CardFactoryUtil {
String keyword = inst.getOriginal();
if (keyword.startsWith("Afflict")) {
final String[] k = keyword.split(" ");
final String[] k = keyword.split(":");
final String n = k[1];
final String trigStr = "Mode$ AttackerBlocked | ValidCard$ Card.Self | TriggerZones$ Battlefield " +

View File

@@ -2,7 +2,7 @@ Name:Ammit Eternal
ManaCost:2 B
Types:Creature Zombie Crocodile Demon
PT:5/5
K:Afflict 3
K:Afflict:3
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ Opponent | TriggerZones$ Battlefield | Execute$ TrigPutCounter | TriggerDescription$ Whenever an opponent casts a spell, put a -1/-1 counter on CARDNAME.
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigRemoveCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, remove all -1/-1 counters from it.
SVar:TrigPutCounter:DB$ PutCounter | Defined$ Self | CounterType$ M1M1 | CounterNum$ 1

View File

@@ -1,7 +1,7 @@
Name:Dagger of the Worthy
ManaCost:2
Types:Artifact Equipment
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddPower$ 2 | AddKeyword$ Afflict 1 | Description$ Equipped creature gets +2/+0 and has afflict 1. (Whenever it becomes blocked, defending player loses 1 life.)
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddPower$ 2 | AddKeyword$ Afflict:1 | Description$ Equipped creature gets +2/+0 and has afflict 1. (Whenever it becomes blocked, defending player loses 1 life.)
K:Equip:2
SVar:Picture:http://www.wizards.com/global/images/magic/general/dagger_of_the_worthy.jpg
Oracle:Equipped creature gets +2/+0 and has afflict 1. (Whenever it becomes blocked, defending player loses 1 life.)\nEquip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.)

View File

@@ -2,7 +2,7 @@ Name:Eternal of Harsh Truths
ManaCost:2 U
Types:Creature Zombie Cleric
PT:1/3
K:Afflict 2
K:Afflict:2
T:Mode$ AttackerUnblocked | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigDraw | TriggerDescription$ Whenever CARDNAME attacks and isn't blocked, draw a card.
SVar:TrigDraw:DB$Draw | Defined$ You | NumCards$ 1
SVar:Picture:http://www.wizards.com/global/images/magic/general/eternal_of_harsh_truths.jpg

View File

@@ -2,7 +2,7 @@ Name:Frontline Devastator
ManaCost:3 R
Types:Creature Zombie Minotaur Warrior
PT:3/3
K:Afflict 2
K:Afflict:2
A:AB$ Pump | Cost$ 1 R | NumAtt$ +1 | SpellDescription$ CARDNAME gets +1/+0 until end of turn.
SVar:Picture:http://www.wizards.com/global/images/magic/general/frontline_devastator.jpg
Oracle:Afflict 2 (Whenever this creature becomes blocked, defending player loses 2 life.)\n{1}{R}: Frontline Devastator gets +1/+0 until end of turn.

View File

@@ -2,6 +2,6 @@ Name:Khenra Eternal
ManaCost:1 B
Types:Creature Zombie Jackal Warrior
PT:2/2
K:Afflict 1
K:Afflict:1
SVar:Picture:http://www.wizards.com/global/images/magic/general/khenra_eternal.jpg
Oracle:Afflict 1 (Whenever this creature becomes blocked, defending player loses 1 life.)

View File

@@ -2,7 +2,7 @@ Name:Manticore Eternal
ManaCost:3 R R
Types:Creature Zombie Manticore
PT:5/4
K:Afflict 3
K:Afflict:3
K:CARDNAME attacks each combat if able.
SVar:Picture:http://www.wizards.com/global/images/magic/general/manticore_eternal.jpg
Oracle:Afflict 3 (Whenever this creature becomes blocked, defending player loses 3 life.)\nManticore Eternal attacks each combat if able.

View File

@@ -2,7 +2,7 @@ Name:Merciless Eternal
ManaCost:2 B
Types:Creature Zombie Cleric
PT:2/2
K:Afflict 2
K:Afflict:2
A:AB$ Pump | Cost$ 2 B Discard<1/Card> | NumAtt$ +2 | NumDef$ +2 | SpellDescription$ CARDNAME gets +2/+2 until end of turn.
SVar:Picture:http://www.wizards.com/global/images/magic/general/merciless_eternal.jpg
Oracle:Afflict 2 (Whenever this creature becomes blocked, defending player loses 2 life.)\n{2}{B}, Discard a card: Merciless Eternal gets +2/+2 until end of turn.

View File

@@ -2,7 +2,7 @@ Name:Neheb, the Eternal
ManaCost:3 R R
Types:Legendary Creature Zombie Minotaur Warrior
PT:4/6
K:Afflict 3
K:Afflict:3
T:Mode$ Phase | Phase$ Main2 | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigMana | TriggerDescription$ At the beginning of your postcombat main phase, add {R} for each 1 life your opponents have lost this turn.
SVar:TrigMana:DB$Mana | Produced$ R | Amount$ X | References$ X
SVar:X:Count$LifeOppsLostThisTurn

View File

@@ -3,6 +3,6 @@ ManaCost:1 U
Types:Creature Zombie Naga Wizard
PT:2/1
K:Prowess
K:Afflict 2
K:Afflict:2
SVar:Picture:http://www.wizards.com/global/images/magic/general/spellweaver_eternal.jpg
Oracle:Prowess (Whenever you cast a noncreature spell, this creature gets +1/+1 until end of turn.)\nAfflict 2 (Whenever this creature becomes blocked, defending player loses 2 life.)

View File

@@ -2,7 +2,7 @@ Name:Wildfire Eternal
ManaCost:3 R
Types:Creature Zombie Jackal Cleric
PT:1/4
K:Afflict 4
K:Afflict:4
T:Mode$ AttackerUnblocked | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigPlay | TriggerDescription$ Whenever CARDNAME attacks and isn't blocked, you may cast an instant or sorcery card from your hand without paying its mana cost.
SVar:TrigPlay:DB$ Play | ValidZone$ Hand | Valid$ Instant.YouOwn,Sorcery.YouOwn | Controller$ You | WithoutManaCost$ True | Optional$ True | Amount$ 1
SVar:Picture:http://www.wizards.com/global/images/magic/general/wildfire_eternal.jpg