Updated Flying Side Kick effect

* Fog Wall should still apply to players who use Flying Side Kick to get out.
* Follow up to 08667a3.
This commit is contained in:
aleos89 2015-12-22 10:36:30 -05:00
parent 71ffda39fb
commit 49f1c439b9

View File

@ -10735,8 +10735,9 @@ static int8 skill_castend_id_check(struct block_list *src, struct block_list *ta
if (inf && battle_check_target(src, target, inf) <= 0) if (inf && battle_check_target(src, target, inf) <= 0)
return USESKILL_FAIL_LEVEL; return USESKILL_FAIL_LEVEL;
//Fogwall makes all offensive-type targetted skills fail at 75% // Fogwall makes all offensive-type targetted skills fail at 75%
if (inf&BCT_ENEMY && tsc && tsc->data[SC_FOGWALL] && rnd() % 100 < 75) // Jump Kick can still fail even though you can jump to friendly targets.
if ((inf&BCT_ENEMY || skill_id == TK_JUMPKICK) && tsc && tsc->data[SC_FOGWALL] && rnd() % 100 < 75)
return USESKILL_FAIL_LEVEL; return USESKILL_FAIL_LEVEL;
return -1; return -1;