From 06c4c2f94c63ccfc5b2e1a297325f5a3c304f2a0 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 11 Apr 2007 19:19:06 +0000 Subject: - When a mob fails to use the selected skill, it will now move on to the next one in the list, rather than return from the function with fail status. - Mobs won't try to run away when rude-attacked if they have a locked-on target already. - Moved the teleport on LP fail check from castend_nodamageid to status_check_skilluse, this way unit_useskill will return failed when trying to use it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10221 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index 27faecd05..6847f0233 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -973,6 +973,10 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int if (hide_flag&INF_GROUND_SKILL && skill_get_unit_target(skill_num)&BCT_ENEMY) return 0; } + + //Should fail when used on top of Land Protector [Skotlex] + if (src && skill_num == AL_TELEPORT && map_getcell(src->m, src->x, src->y, CELL_CHKLANDPROTECTOR)) + return 0; if (src) sc = status_get_sc(src); -- cgit v1.2.3-60-g2f50