- Converted Stuffy Doll to script (note that the choice of player is still not implemented).

This commit is contained in:
Sloth
2011-10-20 18:24:05 +00:00
parent 634e6b34c5
commit d6f298b37b
2 changed files with 4 additions and 18 deletions

View File

@@ -1,10 +1,13 @@
Name:Stuffy Doll
ManaCost:5
Types:Artifact Creature Construct
Text:Whenever damage is dealt to Stuffy Doll, it deals that much damage to your opponent.
Text:no text
PT:0/1
K:Indestructible
A:AB$ DealDamage | Cost$ T | NumDmg$ 1 | SpellDescription$ CARDNAME deals 1 damage to itself.
T:Mode$ DamageDone | Execute$ TrigDamage | ValidTarget$ Card.Self | TriggerZones$ Battlefield | TriggerDescription$ Whenever damage is dealt to CARDNAME, it deals that much damage to your opponent.
SVar:TrigDamage:AB$DealDamage | Cost$ 0 | NumDmg$ X | Defined$ Opponent
SVar:X:TriggerCount$DamageAmount
SVar:Rarity:Rare
SVar:Picture:http://resources.wizards.com/magic/cards/tsp/en-us/card116724.jpg
SetInfo:TSP|Rare|http://magiccards.info/scans/en/ts/264.jpg

View File

@@ -599,23 +599,6 @@ public final class GameActionUtil {
return;
}
if (affected.getName().equals("Stuffy Doll")) {
final Player opponent = affected.getOwner().getOpponent();
final int stuffyDamage = damage;
SpellAbility ability = new Ability(affected, "0") {
@Override
public void resolve() {
opponent.addDamage(stuffyDamage, affected);
}
};
StringBuilder sb = new StringBuilder();
sb.append(affected.getName() + " - Deals ").append(stuffyDamage).append(" damage to ").append(opponent);
ability.setStackDescription(sb.toString());
AllZone.getStack().addSimultaneousStackEntry(ability);
}
if (affected.hasKeyword("Whenever CARDNAME is dealt damage, put a +1/+1 counter on it.")) {
Ability ability2 = new Ability(affected, "0") {
@Override