mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-04 23:17:41 +02:00
Highlight stacks affected by SPELL_LIKE_ATTACK in spellcast mode
This commit is contained in:
parent
dc56047661
commit
f90405a41d
@ -862,7 +862,8 @@ std::vector<const CStack *> BattleStacksController::selectHoveredStacks()
|
||||
spell = owner.actionsController->getCurrentSpell(hoveredHex);
|
||||
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;
|
||||
target.emplace_back(hoveredHex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user