1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Fix cast animation for Genie and heroes

This commit is contained in:
Ivan Savenko
2022-12-14 14:48:02 +02:00
parent 7857668158
commit 3693184e51
2 changed files with 9 additions and 3 deletions

View File

@@ -1123,10 +1123,13 @@ bool HeroCastAnimation::init()
void HeroCastAnimation::initializeProjectile()
{
//spell has no projectile to play, ignore this step
// spell has no projectile to play, ignore this step
if (spell->animationInfo.projectile.empty())
return;
// targeted spells should have well, target
assert(tile.isValid());
Point srccoord = hero->pos.center();
Point destcoord = owner.stacksController->getStackPositionAtHex(tile, target); //position attacked by projectile