From a22a1b63a56a49950b2be2dd9337dd99665676a4 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 4 Oct 2014 11:13:38 +0200 Subject: [PATCH] * Fixed a concurrent modification exception of triggered abilities. --- Mage/src/mage/abilities/TriggeredAbilities.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Mage/src/mage/abilities/TriggeredAbilities.java b/Mage/src/mage/abilities/TriggeredAbilities.java index 3d0f8e146d..2cb04a6ee7 100644 --- a/Mage/src/mage/abilities/TriggeredAbilities.java +++ b/Mage/src/mage/abilities/TriggeredAbilities.java @@ -29,22 +29,27 @@ 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.constants.Zone; import mage.game.Game; import mage.game.events.GameEvent; +import mage.game.events.GameEvent.EventType; import mage.game.permanent.Permanent; import mage.game.permanent.PermanentCard; -import java.util.*; -import mage.game.events.GameEvent.EventType; - - /** * * @author BetaSteward_at_googlemail.com */ -public class TriggeredAbilities extends HashMap { +public class TriggeredAbilities extends ConcurrentHashMap { private final Map> sources = new HashMap<>();