mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
AbilityUtils: make calculateAmount with Triggered use getDefinedCards which does handle Trigger before
CardUtil: need to set CopiedPermanent for LKICopy Scrap Trawler: use TriggeredCardLKICopy which might be more correct
This commit is contained in:
@@ -663,8 +663,7 @@ public class AbilityUtils {
|
||||
}
|
||||
}
|
||||
else if (calcX[0].startsWith("Triggered")) {
|
||||
final SpellAbility root = sa.getRootAbility();
|
||||
list = new CardCollection((Card) root.getTriggeringObject(calcX[0].substring(9)));
|
||||
list = getDefinedCards(card, calcX[0], sa);
|
||||
}
|
||||
else if (calcX[0].startsWith("TriggerCount")) {
|
||||
// TriggerCount is similar to a regular Count, but just
|
||||
|
||||
@@ -303,6 +303,7 @@ public final class CardUtil {
|
||||
newCopy.setFortifiedBy(in.getFortifiedBy(false));
|
||||
newCopy.setClones(in.getClones());
|
||||
newCopy.setHaunting(in.getHaunting());
|
||||
newCopy.setCopiedPermanent(in.getCopiedPermanent());
|
||||
for (final Card haunter : in.getHauntedBy()) {
|
||||
newCopy.addHauntedBy(haunter, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user