mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +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:
+1
-1
@@ -1058,7 +1058,7 @@ bool NPC::Process()
|
||||
NPCAssistCap() < RuleI(Combat, NPCAssistCap)) {
|
||||
// Some cases like flash of light used for aggro haven't set target
|
||||
if (!GetTarget()) {
|
||||
SetTarget(hate_list.GetEntWithMostHateOnList(this));
|
||||
SetTarget(hate_list.GetMobWithMostHateOnList(this));
|
||||
}
|
||||
AIYellForHelp(this, GetTarget());
|
||||
if (NPCAssistCap() > 0 && !assist_cap_timer.Enabled())
|
||||
|
||||
Reference in New Issue
Block a user