Ver Fonte

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

Ivan Savenko há 5 meses atrás
pai
commit
4957657ceb
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      lib/spells/BattleSpellMechanics.cpp

+ 2 - 1
lib/spells/BattleSpellMechanics.cpp

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