[mage.core] Setting poison counters fix.

This commit is contained in:
magenoxx 2010-12-29 13:41:38 +03:00
parent 6ba6d46f43
commit e3b9c8f20d

View file

@ -627,7 +627,7 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
if (actualDamage > 0) {
Permanent source = game.getPermanent(sourceId);
if (source != null && (source.getAbilities().containsKey(InfectAbility.getInstance().getId()))) {
getCounters().addCounter(CounterType.POISON.getInstance());
getCounters().addCounter(CounterType.POISON.getInstance(actualDamage));
} else {
actualDamage = this.loseLife(actualDamage, game);
}