1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-11 11:31:52 +02:00

Tweak creature spell projectile start position

* need more finetuning
This commit is contained in:
AlexVinS 2014-11-27 21:33:57 +03:00
parent 04202eb030
commit 0612042928

View File

@ -1237,7 +1237,7 @@ void CBattleInterface::spellCast( const BattleSpellCast * sc )
Point srccoord = (sc->side ? Point(770, 60) : Point(30, 60)) + pos; //hero position by default
{
const auto casterStackID = sc->casterStack;
if(casterStackID > 0)
{
const CStack * casterStack = curInt->cb->battleGetStackByID(casterStackID);
@ -1246,11 +1246,12 @@ void CBattleInterface::spellCast( const BattleSpellCast * sc )
casterCreatureName = casterStack->type->namePl;
srccoord = CClickableHex::getXYUnitAnim(casterStack->position, casterStack, this);
srccoord.x += 250;
srccoord.y += 240;
}
}
}
}
//TODO: play custom cast animation
{