mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
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:
parent
6dcf3c87f5
commit
5fbdca0b28
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue