mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Merge pull request #608 from spdkils/BotXTarget
Adding AutoXTarget for bot owner when hate is added to bot's owner.
This commit is contained in:
+3
-1
@@ -2541,8 +2541,10 @@ void Mob::AddToHateList(Mob* other, uint32 hate /*= 0*/, int32 damage /*= 0*/, b
|
|||||||
AddFeignMemory(other->CastToBot()->GetBotOwner()->CastToClient());
|
AddFeignMemory(other->CastToBot()->GetBotOwner()->CastToClient());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(!hate_list.IsEntOnHateList(other->CastToBot()->GetBotOwner()))
|
if (!hate_list.IsEntOnHateList(other->CastToBot()->GetBotOwner())) {
|
||||||
hate_list.AddEntToHateList(other->CastToBot()->GetBotOwner(), 0, 0, false, true);
|
hate_list.AddEntToHateList(other->CastToBot()->GetBotOwner(), 0, 0, false, true);
|
||||||
|
other->CastToBot()->GetBotOwner()->CastToClient()->AddAutoXTarget(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif //BOTS
|
#endif //BOTS
|
||||||
|
|||||||
Reference in New Issue
Block a user