From a3a95f6d2dd67cb09a08d2d633cfcf77f6349715 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 7 Jun 2006 22:53:06 +0000 Subject: - Fixed the mob state not being set to Berserk/Angry correctly after the mob reaches the target's location. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7040 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index ea92b5122..61b77bf97 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1196,7 +1196,11 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap) { //Attempt to attack. //At this point we know the target is attackable, we just gotta check if the range matches. if (md->ud.target == tbl->id && md->ud.attacktimer != -1) + { + if (md->state.skillstate!=(md->state.aggressive?MSS_ANGRY:MSS_BERSERK)) + md->state.skillstate = md->state.aggressive?MSS_ANGRY:MSS_BERSERK; //Correct the state. return 0; //Already locked. + } if (!battle_check_range (&md->bl, tbl, md->status.rhw.range)) { //Out of range... -- cgit v1.2.3-70-g09d2