mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
* 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:
parent
6068357c3f
commit
826005c945
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue