Slave aggro (fixes #1676)

- Slaves will now become aggressive when their master starts chasing a target to attack it
This commit is contained in:
Playtester
2016-11-06 11:17:14 +01:00
parent d0ce53e312
commit 78d9e2a245

View File

@@ -1344,7 +1344,9 @@ static int mob_ai_sub_hard_slavemob(struct mob_data *md,unsigned int tick)
if (ud) {
struct block_list *tbl=NULL;
if (ud->target && ud->state.attack_continue)
tbl=map_id2bl(ud->target);
tbl = map_id2bl(ud->target);
else if (ud->target_to && ud->state.attack_continue)
tbl = map_id2bl(ud->target_to);
else if (ud->skilltarget) {
tbl = map_id2bl(ud->skilltarget);
//Required check as skilltarget is not always an enemy. [Skotlex]