possible fix for wither instant spells

This commit is contained in:
magenoxx 2011-08-22 14:20:59 +04:00
parent 6905f33f4f
commit 096ae6e3ca

View file

@ -564,7 +564,8 @@ public abstract class PermanentImpl<T extends PermanentImpl<T>> extends CardImpl
/*if (this.damage + event.getAmount() > this.toughness.getValue()) {
actualDamage = this.toughness.getValue() - this.damage;
}*/
Permanent source = game.getPermanent(sourceId);
//Permanent source = game.getPermanent(sourceId);
MageObject source = game.getObject(sourceId);
if (source != null && (source.getAbilities().containsKey(InfectAbility.getInstance().getId())
|| source.getAbilities().containsKey(WitherAbility.getInstance().getId()))) {
addCounters(CounterType.M1M1.createInstance(actualDamage), game);