From 3f96f243b22b61a840b57a0f702a629ef46aff61 Mon Sep 17 00:00:00 2001 From: DeepCrimson <98864333+DeepCrimson@users.noreply.github.com> Date: Sun, 26 Jun 2022 19:58:55 -0700 Subject: [PATCH] Refactor: Remove redundant 'blockers' variable declaration (#9167) --- .../src/main/java/mage/player/ai/ComputerPlayer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java b/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java index 3edc3e63ee..8307047e40 100644 --- a/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java +++ b/Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai/ComputerPlayer.java @@ -2592,8 +2592,7 @@ public class ComputerPlayer extends PlayerImpl implements Player { protected List getOpponentBlockers(UUID opponentId, Game game) { FilterCreatureForCombatBlock blockFilter = new FilterCreatureForCombatBlock(); - List blockers = game.getBattlefield().getAllActivePermanents(blockFilter, opponentId, game); - return blockers; + return game.getBattlefield().getAllActivePermanents(blockFilter, opponentId, game); } protected CombatSimulator simulateAttack(Attackers attackers, List blockers, UUID opponentId, Game game) {