mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Highlight stacks affected by SPELL_LIKE_ATTACK in spellcast mode
This commit is contained in:
@ -862,7 +862,8 @@ std::vector<const CStack *> BattleStacksController::selectHoveredStacks()
|
|||||||
spell = owner.actionsController->getCurrentSpell(hoveredHex);
|
spell = owner.actionsController->getCurrentSpell(hoveredHex);
|
||||||
caster = owner.actionsController->getCurrentSpellcaster();
|
caster = owner.actionsController->getCurrentSpellcaster();
|
||||||
|
|
||||||
if(caster && spell && owner.actionsController->currentActionSpellcasting(hoveredHex) ) //when casting spell
|
//casting spell or in explicit spellcasting mode that also handles SPELL_LIKE_ATTACK
|
||||||
|
if(caster && spell && (owner.actionsController->currentActionSpellcasting(hoveredHex) || owner.actionsController->creatureSpellcastingModeActive()))
|
||||||
{
|
{
|
||||||
spells::Target target;
|
spells::Target target;
|
||||||
target.emplace_back(hoveredHex);
|
target.emplace_back(hoveredHex);
|
||||||
|
Reference in New Issue
Block a user