diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-07 22:53:06 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-07 22:53:06 +0000 |
commit | a3a95f6d2dd67cb09a08d2d633cfcf77f6349715 (patch) | |
tree | 7ae23ca448eb2118389f10aa998fc67849f18e34 /src/map | |
parent | dd2e4d4fea67858cb39260549de6a2ccb49eb7b9 (diff) | |
download | hercules-a3a95f6d2dd67cb09a08d2d633cfcf77f6349715.tar.gz hercules-a3a95f6d2dd67cb09a08d2d633cfcf77f6349715.tar.bz2 hercules-a3a95f6d2dd67cb09a08d2d633cfcf77f6349715.tar.xz hercules-a3a95f6d2dd67cb09a08d2d633cfcf77f6349715.zip |
- 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
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 4 insertions, 0 deletions
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... |