Fixed a possible problem with continuous effect and Mage Singletons.

This commit is contained in:
LevelX2 2014-04-03 15:08:07 +02:00
parent e5d0de7328
commit 84f25d72d3

View file

@ -263,7 +263,7 @@ public class ContinuousEffects implements Serializable {
HashSet<Ability> abilities = requirementEffects.getAbility(effect.getId());
HashSet<Ability> applicableAbilities = new HashSet<>();
for (Ability ability : abilities) {
if (!(ability instanceof StaticAbility) || ability.isInUseableZone(game, null, false)) {
if (!(ability instanceof StaticAbility) || ability.isInUseableZone(game, ability instanceof MageSingleton ? permanent : null, false)) {
if (effect.applies(permanent, ability, game)) {
applicableAbilities.add(ability);
}