1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Implemented support for multi-spell casters

This commit is contained in:
Ivan Savenko
2023-03-25 00:48:14 +02:00
parent 459a6f067b
commit dc099b2a35
11 changed files with 181 additions and 107 deletions

View File

@@ -840,7 +840,7 @@ std::vector<const CStack *> BattleStacksController::selectHoveredStacks()
const CSpell *spell = nullptr;
spells::Mode mode = owner.actionsController->getCurrentCastMode();
spell = owner.actionsController->getCurrentSpell();
spell = owner.actionsController->getCurrentSpell(hoveredHex);
caster = owner.actionsController->getCurrentSpellcaster();
if(caster && spell && owner.actionsController->currentActionSpellcasting(hoveredHex) ) //when casting spell