Skip to content

Commit be571c1

Browse files
tool4EvErtool4EvEr
authored andcommitted
Clean up
1 parent d046592 commit be571c1

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

forge-game/src/main/java/forge/game/card/CardFactoryUtil.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -650,14 +650,6 @@ public static void addTriggerAbility(final KeywordInterface inst, final Card car
650650

651651
final Trigger trigger = TriggerHandler.parseTrigger(trig, card, intrinsic);
652652
final SpellAbility gainStory = new AbilityStatic(card, Cost.Zero, null) {
653-
@Override
654-
public Cost getPayCosts() {
655-
// AiController.doTrigger only runs an API-less trigger when it recognises a
656-
// free one, and it compares against the Cost.Zero instance. Copying the
657-
// trigger onto each card would otherwise replace it with an equal copy.
658-
return Cost.Zero;
659-
}
660-
661653
@Override
662654
public void resolve() {
663655
final Player p = getActivatingPlayer();

forge-game/src/main/java/forge/game/spellability/SpellAbility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ public SpellAbility copy(Card host, Player activ, final boolean lki, final boole
12481248
clone.replacingObjects = AbilityKey.newMap();
12491249
}
12501250

1251-
clone.setPayCosts(getPayCosts().copy());
1251+
clone.setPayCosts(getPayCosts() == Cost.Zero ? Cost.Zero : getPayCosts().copy());
12521252
if (manaPart != null) {
12531253
clone.manaPart = new AbilityManaPart(clone, mapParams);
12541254
}

0 commit comments

Comments
 (0)