Refactor: Remove redundant 'blockers' variable declaration (#9167)

This commit is contained in:
DeepCrimson 2022-06-26 19:58:55 -07:00 committed by GitHub
parent 7bb851e0a5
commit 3f96f243b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2592,8 +2592,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
protected List<Permanent> getOpponentBlockers(UUID opponentId, Game game) {
FilterCreatureForCombatBlock blockFilter = new FilterCreatureForCombatBlock();
List<Permanent> blockers = game.getBattlefield().getAllActivePermanents(blockFilter, opponentId, game);
return blockers;
return game.getBattlefield().getAllActivePermanents(blockFilter, opponentId, game);
}
protected CombatSimulator simulateAttack(Attackers attackers, List<Permanent> blockers, UUID opponentId, Game game) {