mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Tweak
This commit is contained in:
@ -3104,7 +3104,7 @@ void CBattleInterface::showHighlightedHexes(SDL_Surface *to)
|
|||||||
if(spellToCast)//hero casts spell
|
if(spellToCast)//hero casts spell
|
||||||
{
|
{
|
||||||
spell = SpellID(spellToCast->additionalInfo).toSpell();
|
spell = SpellID(spellToCast->additionalInfo).toSpell();
|
||||||
caster = activeStack->side == BattleSide::ATTACKER ? attackingHeroInstance : defendingHeroInstance;
|
caster = getActiveHero();
|
||||||
}
|
}
|
||||||
else if(creatureSpellToCast >= 0 && stackCanCastSpell && creatureCasting)//stack casts spell
|
else if(creatureSpellToCast >= 0 && stackCanCastSpell && creatureCasting)//stack casts spell
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user