mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
GN3: Maeve, Insidious Singer (+implement GoadEffect.getStackDescription) (#1034)
* maeve_insidious_singer.txt * GoadEffect.getStackDescription
This commit is contained in:
@@ -7,9 +7,25 @@ import forge.game.card.Card;
|
|||||||
import forge.game.player.Player;
|
import forge.game.player.Player;
|
||||||
import forge.game.spellability.SpellAbility;
|
import forge.game.spellability.SpellAbility;
|
||||||
import forge.game.zone.ZoneType;
|
import forge.game.zone.ZoneType;
|
||||||
|
import forge.util.Lang;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class GoadEffect extends SpellAbilityEffect {
|
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
|
@Override
|
||||||
public void resolve(SpellAbility sa) {
|
public void resolve(SpellAbility sa) {
|
||||||
final Player player = sa.getActivatingPlayer();
|
final Player player = sa.getActivatingPlayer();
|
||||||
|
|||||||
@@ -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.)
|
||||||
Reference in New Issue
Block a user