Fixed a bug where Flying Kick could be used (outside of PVE/PVP/etc) to actually move to a character (by stalkers and TKs).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16678 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
7c04e93070
commit
d80b279300
@ -5137,11 +5137,17 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case TK_JUMPKICK:
|
case TK_JUMPKICK:
|
||||||
if( unit_movepos(src, bl->x, bl->y, 1, 1) ) {
|
/* Check if the target is an enemy; if not, skill should fail so the character doesn't unit_movepos (exploitable) */
|
||||||
if( battle_check_target(src, bl, BCT_ENEMY) > 0 )
|
if( battle_check_target(src, bl, BCT_ENEMY) > 0 )
|
||||||
|
{
|
||||||
|
if( unit_movepos(src, bl->x, bl->y, 1, 1) )
|
||||||
|
{
|
||||||
skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);
|
skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);
|
||||||
clif_slide(src,bl->x,bl->y);
|
clif_slide(src,bl->x,bl->y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
clif_skill_fail(sd,skillid,USESKILL_FAIL,0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AL_INCAGI:
|
case AL_INCAGI:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user