mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 06:37:19 +00:00
HP update adjustment that should cover a scenario when mob is feared
This commit is contained in:
1 parent
ddd3e43d4e
commit
1e0ec048af
3 files changed
+9
-9
No files matched your search
+6
-6
@@ -116,7 +116,7 @@ NPC::NPC(const NPCType* d, Spawn2* in_respawn, const glm::vec4& position, int if
|
||||
knightattack_timer(1000),
|
||||
assist_timer(AIassistcheck_delay),
|
||||
qglobal_purge_timer(30000),
|
||||
sendhpupdate_timer(2000),
|
||||
send_hp_update_timer(2000),
|
||||
enraged_timer(1000),
|
||||
taunt_timer(TauntReuseTime * 1000),
|
||||
m_SpawnPoint(position),
|
||||
@@ -745,11 +745,11 @@ bool NPC::Process()
|
||||
}
|
||||
}
|
||||
|
||||
// we might actually want to reset in this check ... won't until issues arise at least :P
|
||||
if (sendhpupdate_timer.Check(false) && (IsTargeted() || (IsPet() && GetOwner() && GetOwner()->IsClient()))) {
|
||||
if(!IsFullHP || cur_hp<max_hp){
|
||||
SendHPUpdate();
|
||||
}
|
||||
/**
|
||||
* Send HP updates when engaged
|
||||
*/
|
||||
if (send_hp_update_timer.Check(false) && this->IsEngaged()) {
|
||||
SendHPUpdate();
|
||||
}
|
||||
|
||||
if(HasVirus()) {
|
||||
|
||||
Reference in new issue
Block a user