compilation error fix

This commit is contained in:
magenoxx 2012-06-29 17:15:04 +04:00
parent 4d6b48b661
commit ba0925dc62

View file

@ -80,20 +80,6 @@ public class BoostEnchantedEffect extends ContinuousEffectImpl<BoostEnchantedEff
return new BoostEnchantedEffect(this);
}
private static boolean isCanKill(DynamicValue toughness) {
if (toughness instanceof StaticValue) {
return toughness.calculate(null, null) < 0;
}
if (toughness instanceof SignInversionDynamicValue) {
// count this class as used for "-{something_positive}"
return true;
}
if (toughness instanceof DomainValue) {
return ((DomainValue) toughness).getAmount() < 0;
}
return false;
}
@Override
public boolean apply(Game game, Ability source) {
Permanent enchantment = game.getPermanent(source.getSourceId());