mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix AnimateAll / AI check creating unwanted ending commands (#3296)
* Fix AnimateAll / AI check creating unwanted ending commands * Fix crash with PW * Clean up --------- Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
This commit is contained in:
@@ -378,7 +378,6 @@ public class AnimateAi extends SpellAbilityAi {
|
||||
becomeAnimated(copy, card.hasSickness(), sa);
|
||||
return copy;
|
||||
}
|
||||
|
||||
private static void becomeAnimated(final Card card, final boolean hasOriginalCardSickness, final SpellAbility sa) {
|
||||
// duplicating AnimateEffect.resolve
|
||||
final Card source = sa.getHostCard();
|
||||
@@ -485,7 +484,7 @@ public class AnimateAi extends SpellAbilityAi {
|
||||
AnimateEffectBase.doAnimate(card, sa, power, toughness, types, removeTypes, finalColors,
|
||||
keywords, removeKeywords, hiddenKeywords,
|
||||
abilities, triggers, replacements, stAbs,
|
||||
timestamp);
|
||||
timestamp, "Permanent");
|
||||
|
||||
// check if animate added static Abilities
|
||||
CardTraitChanges traits = card.getChangedCardTraits().get(timestamp, 0);
|
||||
|
||||
Reference in New Issue
Block a user