From cd387234cfdc3256a699982021cea7b3b0fedefb Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 29 Dec 2014 15:53:53 +0100 Subject: [PATCH] * Bitter Feud - Fixed a bug that it did not work for damage dealt by Planeswalker. --- .../src/mage/sets/commander2014/BitterFeud.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/commander2014/BitterFeud.java b/Mage.Sets/src/mage/sets/commander2014/BitterFeud.java index ad2ccb8bcd..249638ba05 100644 --- a/Mage.Sets/src/mage/sets/commander2014/BitterFeud.java +++ b/Mage.Sets/src/mage/sets/commander2014/BitterFeud.java @@ -136,6 +136,18 @@ class BitterFeudEffect extends ReplacementEffectImpl { return new BitterFeudEffect(this); } + @Override + public boolean checksEventType(GameEvent event, Game game) { + switch(event.getType()) { + case DAMAGE_CREATURE: + case DAMAGE_PLAYER: + case DAMAGE_PLANESWALKER: + return true; + default: + return false; + } + } + @Override public boolean applies(GameEvent event, Ability source, Game game) { player1 = (Player) game.getState().getValue(source.getSourceId() + "_player1"); @@ -147,7 +159,7 @@ class BitterFeudEffect extends ReplacementEffectImpl { targetPlayerId = event.getTargetId(); break; case DAMAGE_CREATURE: - case DAMAGED_PLANESWALKER: + case DAMAGE_PLANESWALKER: Permanent permanent = game.getPermanent(event.getTargetId()); if (permanent != null) { targetPlayerId = permanent.getControllerId();