mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Fixed a concurrent modification exception of triggered abilities.
This commit is contained in:
parent
8fd2a9e234
commit
a22a1b63a5
1 changed files with 10 additions and 5 deletions
|
@ -29,22 +29,27 @@
|
||||||
|
|
||||||
package mage.abilities;
|
package mage.abilities;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.UUID;
|
||||||
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import mage.MageObject;
|
import mage.MageObject;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
|
import mage.game.events.GameEvent.EventType;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
import mage.game.permanent.PermanentCard;
|
import mage.game.permanent.PermanentCard;
|
||||||
|
|
||||||
import java.util.*;
|
|
||||||
import mage.game.events.GameEvent.EventType;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author BetaSteward_at_googlemail.com
|
* @author BetaSteward_at_googlemail.com
|
||||||
*/
|
*/
|
||||||
public class TriggeredAbilities extends HashMap<String, TriggeredAbility> {
|
public class TriggeredAbilities extends ConcurrentHashMap<String, TriggeredAbility> {
|
||||||
|
|
||||||
private final Map<String, List<UUID>> sources = new HashMap<>();
|
private final Map<String, List<UUID>> sources = new HashMap<>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue