From 94a01c593251ccefa4b8b360de51bca5631cab59 Mon Sep 17 00:00:00 2001 From: Inkfish Date: Tue, 19 Jan 2010 16:00:02 +0000 Subject: Intimidate now checks the distance between source and target in case it kills the target and then warps the respawned one. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14221 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index 8fadb870e..7dc71da7d 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2313,7 +2313,7 @@ static int skill_timerskill(int tid, unsigned int tick, int id, intptr data) break; if(skl->target_id) { target = map_id2bl(skl->target_id); - if( skl->skill_id == RG_INTIMIDATE && (!target || target->prev == NULL) ) + if( skl->skill_id == RG_INTIMIDATE && (!target || target->prev == NULL || !check_distance_bl(src,target,AREA_SIZE)) ) target = src; //Required since it has to warp. if(target == NULL) break; -- cgit v1.2.3-70-g09d2