1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix attempt to play unit spellcasting animation for spells cast by hero

This commit is contained in:
Ivan Savenko
2025-05-28 22:40:34 +03:00
parent f85bfb53b8
commit 4957657ceb

View File

@@ -283,6 +283,7 @@ void BattleSpellMechanics::cast(ServerCallback * server, const Target & target)
sc.tile = target.at(0).hexValue;
sc.castByHero = mode == Mode::HERO;
if (mode != Mode::HERO)
sc.casterStack = caster->getCasterUnitId();
sc.manaGained = 0;