mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Do not show unit information on dead creatures
This commit is contained in:
@@ -530,7 +530,7 @@ bool BattleActionsController::actionIsLegal(PossiblePlayerBattleAction action, B
|
||||
return (targetStack && targetStackOwned && targetStack->Speed() > 0);
|
||||
|
||||
case PossiblePlayerBattleAction::CREATURE_INFO:
|
||||
return (targetStack && targetStackOwned);
|
||||
return (targetStack && targetStackOwned && targetStack->alive());
|
||||
|
||||
case PossiblePlayerBattleAction::HERO_INFO:
|
||||
if (targetHex == BattleHex::HERO_ATTACKER)
|
||||
|
Reference in New Issue
Block a user