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:
parent
04202eb030
commit
0612042928
@ -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
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user