Fixed blocker selection bug

The prior version didn't allow you to pick blockers if you weren't the attacking player (for example, in an EDH game if you activate this during another players turn and you're not the defender)
This commit is contained in:
Zzooouhh 2017-10-15 16:17:22 +02:00 committed by GitHub
parent 6dcf3c87f5
commit 5fbdca0b28

View file

@ -151,7 +151,11 @@ class BrutalHordechiefReplacementEffect extends ReplacementEffectImpl {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
return event.getPlayerId().equals(source.getControllerId());
Player blockController = game.getPlayer(source.getControllerId());
if (blockController != null) {
return true;
}
return false;
}
@Override