소스 검색

Tweak creature spell projectile start position
* need more finetuning

AlexVinS 11 년 전
부모
커밋
0612042928
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      client/battle/CBattleInterface.cpp

+ 5 - 4
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
 	{