From 0612042928c7fd7cb0a151015afe30073aaa8af0 Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Thu, 27 Nov 2014 21:33:57 +0300 Subject: [PATCH] Tweak creature spell projectile start position * need more finetuning --- client/battle/CBattleInterface.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/battle/CBattleInterface.cpp b/client/battle/CBattleInterface.cpp index 040aafcf9..9435f3b3d 100644 --- a/client/battle/CBattleInterface.cpp +++ b/client/battle/CBattleInterface.cpp @@ -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 {