mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
- clear the two attackers lists in AI attack code
This commit is contained in:
parent
4ea5898360
commit
9742a673f6
1 changed files with 2 additions and 0 deletions
|
@ -820,6 +820,8 @@ public class ComputerPlayer6 extends ComputerPlayer /*implements Player*/ {
|
|||
* @param activePlayerId
|
||||
*/
|
||||
private void declareAttackers(Game game, UUID activePlayerId) {
|
||||
attackersToCheck.clear();
|
||||
attackersList.clear();
|
||||
game.fireEvent(new GameEvent(GameEvent.EventType.DECLARE_ATTACKERS_STEP_PRE, null, null, activePlayerId));
|
||||
if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.DECLARING_ATTACKERS, activePlayerId, activePlayerId))) {
|
||||
Player attackingPlayer = game.getPlayer(activePlayerId);
|
||||
|
|
Loading…
Reference in a new issue