mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix attempt to play unit spellcasting animation for spells cast by hero
This commit is contained in:
@@ -283,7 +283,8 @@ void BattleSpellMechanics::cast(ServerCallback * server, const Target & target)
|
|||||||
sc.tile = target.at(0).hexValue;
|
sc.tile = target.at(0).hexValue;
|
||||||
|
|
||||||
sc.castByHero = mode == Mode::HERO;
|
sc.castByHero = mode == Mode::HERO;
|
||||||
sc.casterStack = caster->getCasterUnitId();
|
if (mode != Mode::HERO)
|
||||||
|
sc.casterStack = caster->getCasterUnitId();
|
||||||
sc.manaGained = 0;
|
sc.manaGained = 0;
|
||||||
|
|
||||||
sc.activeCast = false;
|
sc.activeCast = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user