From 1e9d089fd81d0445f8a38197c68b8f1360a5f2fb Mon Sep 17 00:00:00 2001 From: Dydzio Date: Tue, 3 Dec 2024 18:04:41 +0100 Subject: [PATCH] Fix shooting being priority action for dead creature hexes with targeting empty hexes enabled --- client/battle/BattleActionsController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/battle/BattleActionsController.cpp b/client/battle/BattleActionsController.cpp index 434ec46cb..e5920ade9 100644 --- a/client/battle/BattleActionsController.cpp +++ b/client/battle/BattleActionsController.cpp @@ -275,7 +275,7 @@ void BattleActionsController::reorderPossibleActionsPriority(const CStack * stac return 2; break; case PossiblePlayerBattleAction::SHOOT: - if(targetStack == nullptr || targetStack->unitSide() == stack->unitSide()) + if(targetStack == nullptr || targetStack->unitSide() == stack->unitSide() || !targetStack->alive()) return 100; //bottom priority return 4;