mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Merge pull request #1792 from IvanSavenko/happy_dydzio
Fixes for beta - graphical artifacts
This commit is contained in:
@@ -694,14 +694,14 @@ void BattleActionsController::actionRealize(PossiblePlayerBattleAction action, B
|
||||
if (action.spell() == SpellID::SACRIFICE)
|
||||
{
|
||||
heroSpellToCast->aimToHex(targetHex);
|
||||
possibleActions.push_back(PossiblePlayerBattleAction::SACRIFICE);
|
||||
possibleActions.push_back({PossiblePlayerBattleAction::SACRIFICE, action.spell()});
|
||||
owner.stacksController->setSelectedStack(targetStack);
|
||||
return;
|
||||
}
|
||||
if (action.spell() == SpellID::TELEPORT)
|
||||
{
|
||||
heroSpellToCast->aimToUnit(targetStack);
|
||||
possibleActions.push_back(PossiblePlayerBattleAction::TELEPORT);
|
||||
possibleActions.push_back({PossiblePlayerBattleAction::TELEPORT, action.spell()});
|
||||
owner.stacksController->setSelectedStack(targetStack);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user