diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 09d882c42..706408af4 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10405,8 +10405,8 @@ int buildin_mobassist(struct script_state *st) { ud = unit_bl2ud(bl);
md->master_id = bl->id;
if (ud) {
- if (ud->attacktarget)
- md->target_id = ud->attacktarget;
+ if (ud->target)
+ md->target_id = ud->target;
else if (ud->skilltarget)
md->target_id = ud->skilltarget;
md->min_chase = distance_bl(&md->bl,map_id2bl(md->target_id)) + md->db->range2;
|