mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fix Concurrent Exception when trying to remove SpellAbilities immediately during an Animate (Unstable Frontier + most non-basics)
This commit is contained in:
@@ -162,12 +162,16 @@ public class AnimateEffect extends AnimateEffectBase {
|
||||
for (final SpellAbility ab : c.getSpellAbilities()) {
|
||||
if (removeAll || (ab.isAbility() && clearAbilities)
|
||||
|| (ab.isSpell() && clearSpells)) {
|
||||
c.removeSpellAbility(ab);
|
||||
removedAbilities.add(ab);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Can't rmeove SAs in foreach loop that finds them
|
||||
for (final SpellAbility ab : removedAbilities) {
|
||||
c.removeSpellAbility(ab);
|
||||
}
|
||||
|
||||
if (sa.hasParam("RemoveThisAbility") && !removedAbilities.contains(sa)) {
|
||||
c.removeSpellAbility(sa);
|
||||
removedAbilities.add(sa);
|
||||
|
||||
Reference in New Issue
Block a user