- clear the two attackers lists in AI attack code

This commit is contained in:
Jeff 2021-01-10 11:43:00 -06:00
parent 4ea5898360
commit 9742a673f6

View file

@ -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);