mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Temporary Invasion Plans workaround for AI
This commit is contained in:
parent
9d48046e43
commit
ddaa39d160
1 changed files with 5 additions and 2 deletions
|
|
@ -95,9 +95,12 @@ class InvasionPlansEffect extends ContinuousRuleModifyingEffectImpl {
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
Player blockController = game.getPlayer(game.getCombat().getAttackingPlayerId());
|
Player blockController = game.getPlayer(game.getCombat().getAttackingPlayerId());
|
||||||
if (blockController != null) {
|
if (blockController != null) {
|
||||||
|
// temporary workaround for AI bugging out while choosing blockers
|
||||||
|
if (blockController.isHuman()) {
|
||||||
game.getCombat().selectBlockers(blockController, game);
|
game.getCombat().selectBlockers(blockController, game);
|
||||||
return event.getPlayerId().equals(game.getCombat().getAttackingPlayerId());
|
return event.getPlayerId().equals(game.getCombat().getAttackingPlayerId());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue