From b6a4e310b0582097f61faf175a59a1056262f911 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 5 Feb 2007 18:16:33 +0000 Subject: - Fixed a duplicate warp name in Rachel - Fixed Venom Splasher not being Poison elemental - Cleaned up #blv - Fixed the skill tree not always updating when using @allskill - Probably fixed the target-change on melee attack setting not working. - Moved the deletion of the invincible timer when using skills so that it is not deleted for skills such as Ashura (when just selecting a target) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9791 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 4abd1dd58..bba0505c6 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -725,13 +725,13 @@ static int mob_can_changetarget(struct mob_data* md, struct block_list* target, { if (md->state.provoke_flag == target->id) return 1; - else if (!battle_config.mob_ai&0x4) + else if (!(battle_config.mob_ai&0x4)) return 0; } switch (md->state.skillstate) { case MSS_BERSERK: - if (!mode&MD_CHANGETARGET_MELEE) + if (!(mode&MD_CHANGETARGET_MELEE)) return 0; return (battle_config.mob_ai&0x4 || check_distance_bl(&md->bl, target, 3)); case MSS_RUSH: -- cgit v1.2.3-60-g2f50