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