Correction to Protean Hydra code for removal of the +1/+1 counters regardless of if the damage is prevented.

This commit is contained in:
MTGfan 2016-11-10 23:10:11 -05:00
parent 02dd57d889
commit ba3f4c721a

View file

@ -106,12 +106,11 @@ public class ProteanHydra extends CardImpl {
@Override @Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) { public boolean replaceEvent(GameEvent event, Ability source, Game game) {
PreventionEffectData preventionEffectData = preventDamageAction(event, source, game); int damage = event.getAmount();
if (preventionEffectData.getPreventedDamage() > 0) { preventDamageAction(event, source, game);
Permanent permanent = game.getPermanent(source.getSourceId()); Permanent permanent = game.getPermanent(source.getSourceId());
if (permanent != null) { if (permanent != null) {
permanent.removeCounters(CounterType.P1P1.createInstance(preventionEffectData.getPreventedDamage()), game); permanent.removeCounters(CounterType.P1P1.createInstance(damage), game); //MTG ruling Protean Hydra loses counters even if the damage isn't prevented
}
} }
return false; return false;
} }