* Sovereigns of Lost Alara - Fixed a bug that the effect attaching the aura to the attacking creature throws an error.

This commit is contained in:
LevelX2 2013-06-15 00:24:10 +02:00
parent 84df0f2c43
commit b7a22aa283

View file

@ -399,7 +399,7 @@ public class ContinuousEffects implements Serializable {
ReplacementEffect entry = it1.next();
if (consumed.containsKey(entry.getId())) {
HashSet<UUID> consumedAbilitiesIds = consumed.get(entry.getId());
if (consumedAbilitiesIds.size() == ((HashSet<Ability>) rEffects.get(entry)).size()) {
if (rEffects.get(entry) == null || consumedAbilitiesIds.size() == ((HashSet<Ability>) rEffects.get(entry)).size()) {
it1.remove();
} else {
Iterator it = ((HashSet<Ability>) rEffects.get(entry)).iterator();