mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Update TokenEffectBase.java
fix ConcurrentModificationException (anointed procession and divine visitation in play, then cast benevolent offering, then choose replacement effect divine visitation, hit ok)
This commit is contained in:
@@ -78,7 +78,7 @@ public abstract class TokenEffectBase extends SpellAbilityEffect {
|
|||||||
|
|
||||||
// support PlayerCollection for affected
|
// support PlayerCollection for affected
|
||||||
Set<Player> toRemove = Sets.newHashSet();
|
Set<Player> toRemove = Sets.newHashSet();
|
||||||
for (Player p : tokenTable.rowKeySet()) {
|
for (Player p : Sets.newHashSet(tokenTable.rowKeySet())) {
|
||||||
final Map<AbilityKey, Object> repParams = AbilityKey.mapFromAffected(p);
|
final Map<AbilityKey, Object> repParams = AbilityKey.mapFromAffected(p);
|
||||||
repParams.put(AbilityKey.Token, tokenTable);
|
repParams.put(AbilityKey.Token, tokenTable);
|
||||||
repParams.put(AbilityKey.EffectOnly, true); // currently only effects can create tokens?
|
repParams.put(AbilityKey.EffectOnly, true); // currently only effects can create tokens?
|
||||||
|
|||||||
Reference in New Issue
Block a user