* Fixed that continuous effects of copied cards with limited duration stop to work as the copied card stops to exist.

This commit is contained in:
LevelX2 2015-04-10 00:39:06 +02:00
parent 7292a1625c
commit d3dba58358
11 changed files with 113 additions and 38 deletions

View file

@ -351,10 +351,8 @@ public class ContinuousEffects implements Serializable {
if (ability.getAbilityType() != AbilityType.STATIC || ability.isInUseableZone(game, null, event)) {
if (effect.getDuration() != Duration.OneUse || !effect.isUsed()) {
if (!game.getScopeRelevant() || effect.hasSelfScope() || !event.getTargetId().equals(ability.getSourceId())) {
if (checkAbilityStillExists(ability, effect, event, game)) { // TODO: This is really needed???
if (effect.applies(event, ability, game)) {
applicableAbilities.add(ability);
}
if (effect.applies(event, ability, game)) {
applicableAbilities.add(ability);
}
}
}