* Fixed a bug that prevented some continuous effects of permanents to work correctly if the permanents controller changed (e.g. play lands from libraray with a controlled Courser of Kruphix).

This commit is contained in:
LevelX2 2014-08-09 23:38:20 +02:00
parent 6068357c3f
commit 826005c945

View file

@ -139,9 +139,6 @@ public class ContinuousEffects implements Serializable {
allEffectsLists.add(requirementEffects);
allEffectsLists.add(restrictionEffects);
allEffectsLists.add(restrictionUntapNotMoreThanEffects);
for(ContinuousEffectsList asThoughtlist :asThoughEffectsMap.values()) {
allEffectsLists.add(asThoughtlist);
}
allEffectsLists.add(costModificationEffects);
allEffectsLists.add(spliceCardEffects);
}
@ -894,6 +891,7 @@ public class ContinuousEffects implements Serializable {
AsThoughEffect newAsThoughEffect = (AsThoughEffect)effect;
if (!asThoughEffectsMap.containsKey(newAsThoughEffect.getAsThoughEffectType())) {
ContinuousEffectsList<AsThoughEffect> list = new ContinuousEffectsList<>();
allEffectsLists.add(list);
asThoughEffectsMap.put(newAsThoughEffect.getAsThoughEffectType(), list);
}
asThoughEffectsMap.get(newAsThoughEffect.getAsThoughEffectType()).addEffect(newAsThoughEffect, source);