This commit is contained in:
magenoxx 2011-08-12 00:38:28 +04:00
parent 5010ef9dbe
commit 61e09f543e

View file

@ -64,13 +64,7 @@ public class ConditionalStaticAbility extends StaticAbility<ConditionalStaticAbi
if (!condition.apply(game, this)) {
return emptyEffects;
}
Effects typedEffects = new Effects();
for (Effect effect: getEffects()) {
if (effect.getEffectType() == effectType) {
typedEffects.add(effect);
}
}
return typedEffects;
return super.getEffects(game, effectType);
}
@Override