mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Quest API] Add GetHateTopBot(), GetHateTopClient(), and GetHateTopNPC() to Perl/Lua (#3793)
# Perl - Add `$mob->GetHateTopBot()`. - Add `$mob->GetHateTopClient()`. - Add `$mob->GetHateTopNPC()`. # Lua - Add `mob:GetHateTopBot()`. - Add `mob:GetHateTopClient()`. - Add `mob:GetHateTopNPC()`.
This commit is contained in:
+3
-3
@@ -769,7 +769,7 @@ void Client::AI_Process()
|
||||
{
|
||||
if(AI_target_check_timer->Check())
|
||||
{
|
||||
SetTarget(hate_list.GetEntWithMostHateOnList(this));
|
||||
SetTarget(hate_list.GetMobWithMostHateOnList(this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1073,12 +1073,12 @@ void Mob::AI_Process() {
|
||||
|
||||
if (IsFocused()) {
|
||||
if (!target) {
|
||||
SetTarget(hate_list.GetEntWithMostHateOnList(this));
|
||||
SetTarget(hate_list.GetMobWithMostHateOnList(this));
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!ImprovedTaunt())
|
||||
SetTarget(hate_list.GetEntWithMostHateOnList(this));
|
||||
SetTarget(hate_list.GetMobWithMostHateOnList(this));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user