summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.cpp b/src/map/mob.cpp
index d037972..9fe6b2d 100644
--- a/src/map/mob.cpp
+++ b/src/map/mob.cpp
@@ -804,10 +804,10 @@ int mob_attack(dumb_ptr<mob_data> md, tick_t tick)
nullpo_retz(md);
- if ((tbl = map_id2bl(md->target_id)) == nullptr)
+ if (!mob_check_attack(md))
return 0;
- if (!mob_check_attack(md))
+ if ((tbl = map_id2bl(md->target_id)) == nullptr)
return 0;
if (battle_config.monster_attack_direction_change)