1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Remove hardcoded constant

This commit is contained in:
Ivan Savenko
2023-03-29 14:33:44 +03:00
parent 1fcaeba8e0
commit a42dc923e4

View File

@@ -689,14 +689,14 @@ void BattleActionsController::actionRealize(PossiblePlayerBattleAction action, B
if (action.spell() == SpellID::SACRIFICE) if (action.spell() == SpellID::SACRIFICE)
{ {
heroSpellToCast->aimToHex(targetHex); heroSpellToCast->aimToHex(targetHex);
possibleActions.push_back({PossiblePlayerBattleAction::SACRIFICE, SpellID::SACRIFICE}); possibleActions.push_back({PossiblePlayerBattleAction::SACRIFICE, action.spell()});
owner.stacksController->setSelectedStack(targetStack); owner.stacksController->setSelectedStack(targetStack);
return; return;
} }
if (action.spell() == SpellID::TELEPORT) if (action.spell() == SpellID::TELEPORT)
{ {
heroSpellToCast->aimToUnit(targetStack); heroSpellToCast->aimToUnit(targetStack);
possibleActions.push_back({PossiblePlayerBattleAction::TELEPORT, SpellID::TELEPORT}); possibleActions.push_back({PossiblePlayerBattleAction::TELEPORT, action.spell()});
owner.stacksController->setSelectedStack(targetStack); owner.stacksController->setSelectedStack(targetStack);
return; return;
} }