浏览代码

Fix shooting being priority action for dead creature hexes with targeting empty hexes enabled

Dydzio 10 月之前
父节点
当前提交
1e9d089fd8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/battle/BattleActionsController.cpp

+ 1 - 1
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;