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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user