abDamageTgt

Usual revision process to support Count and Drawback.
Like spDamageTgt, it supports targeting creatures only (C), players only (P) and creatures or players. (CP)
New Drawback actions:
DamageSelf - deals damage to the source card
LoseLifeTgtCtrlr - Controller of target card loses life
Modified the addDamage method in GameAction to take LifeLink and other card interactions into account. Added a different addDamage method for targeting a player.
I discovered that I only need to define two different abilities for the three combinations of cost. Mana and Tap uses the same ability as Tap-Only. Before assigning it to the card object, the Ability_Tap object is assigned a mana cost (setManaCost).
This "discovery" means I can chop out an unnecessary chunk of code in abPump.
To update cards.txt, just do search and replace for abDamageCP -> abDamageTgtCP (no prior keyword for creature only or player only)
A few new cards:
Like spDamageTgt, it supports targeting creatures only (C), players only (P) and creatures or players. (CP)
New Drawback actions:
DamageSelf - deals damage to the source card
LoseLifeTgtCtrlr - Controller of target card loses life
Modified the addDamage method in GameAction to take LifeLink and other card interactions into account. Added a different addDamage method for targeting a player.
I discovered that I only need to define two different abilities for the three combinations of cost. Mana and Tap uses the same ability as Tap-Only. Before assigning it to the card object, the Ability_Tap object is assigned a mana cost (setManaCost).
This "discovery" means I can chop out an unnecessary chunk of code in abPump.
To update cards.txt, just do search and replace for abDamageCP -> abDamageTgtCP (no prior keyword for creature only or player only)
A few new cards:
- Code: Select all
Abyssal Hunter
3 B
Creature Human Assassin
no text
1/1
abDamageTgtC B T:X:Drawback$TapTgt:Tap target creature. Abyssal Hunter deals damage equal to Abyssal Hunter's power to that creature.:Abyssal Hunter - tap creature and deal damage to it.
SVar:X:Count$CardPower
Brothers of Fire
1 R R
Creature Human Shaman
no text
2/2
abDamageTgtCP 1 R R:1:Drawback$DamageYou/1:Brothers of Fire deals 1 damage to target creature or player and 1 damage to you.:Brothers of Fire - deal damage to creature or player and you.
Fireslinger
1 R
Creature Human Wizard
no text
1/1
abDamageTgtCP T:1:Drawback$DamageYou/1:Fireslinger deals 1 damage to target creature or player and 1 damage to you.:Fireslinger - deal damage to creature or player and you.
Flamewave Invoker
2 R
Creature Goblin Mutant
no text
2/2
abDamageTgtP 7 R:5
Granger Guildmage
G
Creature Human Wizard
no text
1/1
abPumpTgt W T:First Strike
abDamageTgtCP R T:1:Drawback$DamageYou/1:Granger Guildmage deals 1 damage to target creature or player and 1 damage to you.:Granger Guildmage - damage creature or player and you.
Granite Shard
3
Artifact
no text
abDamageTgtCP 3 T:1
abDamageTgtCP R T:1
Psionic Entity
4 U
Creature Illusion
no text
2/2
abDamageTgtCP T:2:Drawback$DamageSelf/3:Psionic Entity deals 2 damage to target creature or player and 3 damage to itself.:Psionic Entity - deal damage to creature or player and itself.
Rakdos Ickspitter
1 B R
Creature Thrull
no text
1/1
abDamageTgtC T:1:Drawback$LoseLifeTgtCtrlr/1:Rakdos Ickspitter deals 1 damage to target creature and that creature's controller loses 1 life.:Rakdos Ickspitter - deal damage to creature and its controller loses life.
Reckless Embermage
3 R
Creature Human Wizard
no text
2/2
abDamageTgtCP 1 R:1:Drawback$DamageSelf/1:Reckless Embermage deals 1 damage to target creature or player and 1 damage to itself.:Reckless Embermage - deal damage to creature or player and itself.
Spikeshot Goblin
2 R
Creature Goblin Shaman
no text
1/2
abDamageTgtCP R T:X:Spikeshot Goblin deals damage equal to its power to target creature or player.:Spikeshot Goblin - deal X damage to creature or player.
Storm Spirit
3 W U G
Creature Elemental Spirit
no text
3/3
abDamageTgtC T:2
Stun Sniper
W R
Creature Human Archer
no text
1/1
abDamageTgtC 1 T:1:Drawback$TapTgt
Sunflare Shaman
1 R
Creature Elemental Shaman
no text
2/1
abDamageTgtCP 1 R T:X:Drawback$DamageSelf/X:Sunflare Shaman deals X damage to target creature or player and X damage to itself, where X is the number of Elemental cards in your graveyard.:Sunflare Shaman - deals X damage to creature or player and X damage to itself.
SVar:X:Count$TypeInYourYard.Elemental
Telim 'Tor's Darts
2
Artifact
no text
abDamageTgtP 2 T:1
Thornscape Master
2 G G
Creature Human Wizard
no text
2/2
abDamageTgtC R R T:2
abPumpTgt W W T:Protection from white
abPumpTgt W W T:Protection from blue
abPumpTgt W W T:Protection from black
abPumpTgt W W T:Protection from red
abPumpTgt W W T:Protection from green
- Code: Select all
Goblin Artillery
1 R R
Creature Goblin Warrior
no text
1/3
abDamageTgtCP T:2:Drawback$DamageYou/3:Goblin Artillery deals 2 damage to target creature or player and 3 damage to you.:Goblin Artillery - deal damage to creature or player and you.
Orcish Artillery
1 R R
Creature Orc Warrior
no text
1/3
abDamageTgtCP T:2:Drawback$DamageYou/3:Orcish Artillery deals 2 damage to target creature or player and 3 damage to you.:Orcish Artillery - deal damage to creature or player and you.
Orcish Cannoneers
1 R R
Creature Orc Warrior
no text
1/3
abDamageTgtCP T:2:Drawback$DamageYou/3:Orcish Cannoneers deals 2 damage to target creature or player and 3 damage to you.:Orcish Cannoneers - deal damage to creature or player and you.
Sparksmith
1 R
Creature Goblin
no text
1/1
abDamageTgtC T:X:Drawback$DamageYou/X:Sparksmith deals X damage to target creature and X damage to you, where X is the number of Goblins on the battlefield.:Sparksmith - deal X damage to creature and X damage to you.
SVar:X:Count$TypeOnBattlefield.Goblin