diff options
Diffstat (limited to 'src/map/mob.cpp')
-rw-r--r-- | src/map/mob.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/mob.cpp b/src/map/mob.cpp index 7566e03..1be40f0 100644 --- a/src/map/mob.cpp +++ b/src/map/mob.cpp @@ -1396,6 +1396,16 @@ int mob_target(dumb_ptr<mob_data> md, dumb_ptr<block_list> bl, int dist) return 0; } +int mob_aggravate(dumb_ptr<mob_data> md, dumb_ptr<block_list> bl) +{ + if (md->bl_type != BL::MOB) + return 0; + mob_target(md, bl, battle_get_range(bl)); + md->target_id = bl->bl_id; + md->attacked_id = bl->bl_id; + return 1; +} + /*========================================== * The ?? routine of an active monster *------------------------------------------ |