mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -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,8 +95,11 @@ class InvasionPlansEffect extends ContinuousRuleModifyingEffectImpl {
|
|||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
Player blockController = game.getPlayer(game.getCombat().getAttackingPlayerId());
|
||||
if (blockController != null) {
|
||||
game.getCombat().selectBlockers(blockController, game);
|
||||
return event.getPlayerId().equals(game.getCombat().getAttackingPlayerId());
|
||||
// temporary workaround for AI bugging out while choosing blockers
|
||||
if (blockController.isHuman()) {
|
||||
game.getCombat().selectBlockers(blockController, game);
|
||||
return event.getPlayerId().equals(game.getCombat().getAttackingPlayerId());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue