From 9897fd34e26b4276bb87962e354346264068fda2 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 15 May 2006 17:10:41 +0000 Subject: - Changed the behaviour of immobile mobs when they can't chase their target. Rather than using a longrange skill and then unlocking, they will use an attack/angry state skill and then unlock. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6599 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/mob.c b/src/map/mob.c index 4069a9733..3cfe3b997 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1187,7 +1187,8 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap) { //Out of range... if (!(mode&MD_CANMOVE)) { //Can't chase. Attempt to use a ranged skill at least? - mobskill_use(md, tick, MSC_LONGRANGEATTACKED); + md->state.skillstate = md->state.aggressive?MSS_ANGRY:MSS_BERSERK; + mobskill_use(md, tick, -1); mob_unlocktarget(md,tick); return 0; } -- cgit v1.2.3-70-g09d2