mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Fix shooting being priority action for dead creature hexes with targeting empty hexes enabled
This commit is contained in:
@ -275,7 +275,7 @@ void BattleActionsController::reorderPossibleActionsPriority(const CStack * stac
|
|||||||
return 2;
|
return 2;
|
||||||
break;
|
break;
|
||||||
case PossiblePlayerBattleAction::SHOOT:
|
case PossiblePlayerBattleAction::SHOOT:
|
||||||
if(targetStack == nullptr || targetStack->unitSide() == stack->unitSide())
|
if(targetStack == nullptr || targetStack->unitSide() == stack->unitSide() || !targetStack->alive())
|
||||||
return 100; //bottom priority
|
return 100; //bottom priority
|
||||||
|
|
||||||
return 4;
|
return 4;
|
||||||
|
Reference in New Issue
Block a user