mirror of
https://github.com/correl/mage.git
synced 2024-12-27 20:06:31 +00:00
Correction to Protean Hydra code for removal of the +1/+1 counters regardless of if the damage is prevented.
This commit is contained in:
parent
02dd57d889
commit
ba3f4c721a
1 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue