mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
clean up
This commit is contained in:
parent
5010ef9dbe
commit
61e09f543e
1 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue