diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-22 09:00:57 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-22 09:00:57 +0000 |
commit | 5f857bae116433a2a0fd38b8c3539352c5453f7a (patch) | |
tree | 52e60dcc8ba4ee1a7ddd2475eed6b63c977709b4 /src/map/skill.c | |
parent | b5bbb9cc74ef82312be3f45b78634e238e4941c8 (diff) | |
download | hercules-5f857bae116433a2a0fd38b8c3539352c5453f7a.tar.gz hercules-5f857bae116433a2a0fd38b8c3539352c5453f7a.tar.bz2 hercules-5f857bae116433a2a0fd38b8c3539352c5453f7a.tar.xz hercules-5f857bae116433a2a0fd38b8c3539352c5453f7a.zip |
Fixed mob AI code iterating over non-mob objects without checking, when monster_ai flag 0x20 is set (caused by r11943)
Cleaned up macros that wrap unit_stop_attack() (bugreport:357)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11957 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 6e9935e33..f3709e93a 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -4567,7 +4567,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in if( (su) && (sg = su->group) && (sg->src_id == src->id || map_flag_vs(bl->m)) - && (skill_get_inf2(sg->skill_id)&INF2_TRAP) ) + && (skill_get_inf2(sg->skill_id)&INF2_TRAP) ) { // prevent picking up expired traps if( !(sg->unit_id == UNT_USED_TRAPS || (sg->unit_id == UNT_ANKLESNARE && sg->val2 != 0 )) ) { |