GN3: Maeve, Insidious Singer (+implement GoadEffect.getStackDescription) (#1034)

* maeve_insidious_singer.txt

* GoadEffect.getStackDescription
This commit is contained in:
Northmoc
2022-07-05 01:28:01 -04:00
committed by GitHub
parent e1c08ef5af
commit 1df114d694
2 changed files with 25 additions and 0 deletions

View File

@@ -7,9 +7,25 @@ import forge.game.card.Card;
import forge.game.player.Player;
import forge.game.spellability.SpellAbility;
import forge.game.zone.ZoneType;
import forge.util.Lang;
import java.util.List;
public class GoadEffect extends SpellAbilityEffect {
@Override
protected String getStackDescription(SpellAbility sa) {
final Player player = sa.getActivatingPlayer();
List<Card> tgt = getTargetCards(sa);
if (tgt.size() <= 0) {
return "";
} else {
final StringBuilder sb = new StringBuilder();
sb.append(player).append(" goads ").append(Lang.joinHomogenous(tgt)).append(".");
return sb.toString();
}
}
@Override
public void resolve(SpellAbility sa) {
final Player player = sa.getActivatingPlayer();

View File

@@ -0,0 +1,9 @@
Name:Maeve, Insidious Singer
ManaCost:2 U U
Types:Legendary Creature Siren
PT:3/4
A:AB$ Goad | Cost$ 2 U | ValidTgts$ Creature | SubAbility$ DBEffect | SpellDescription$ Goad target creature.
SVar:DBEffect:DB$ Effect | Triggers$ TrigAttacks | RememberObjects$ Targeted | SpellDescription$ Whenever that creature attacks one of your opponents this turn, you draw a card. (A goaded creature attacks each combat if able and attacks a player other than you if able, until your next turn.)
SVar:TrigAttacks:Mode$ Attacks | ValidCard$ Creature.IsRemembered | Attacked$ Opponent | TriggerZones$ Battlefield | Execute$ TrigDraw | TriggerDescription$ Whenever that creature attacks one of your opponents this turn, you draw a card. (A goaded creature attacks each combat if able and attacks a player other than you if able, until your next turn.)
SVar:TrigDraw:DB$ Draw
Oracle:{2}{U}: Goad target creature. Whenever that creature attacks one of your opponents this turn, you draw a card. (A goaded creature attacks each combat if able and attacks a player other than you if able, until your next turn.)