mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Converted Stuffy Doll to script (note that the choice of player is still not implemented).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user