mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/Creature: Attach out-of-combat health regen to the Engaged system, not the Combat flag. Closes #21571.
This commit is contained in:
@@ -799,7 +799,7 @@ void Creature::Update(uint32 diff)
|
||||
|
||||
if (m_regenTimer == 0)
|
||||
{
|
||||
bool bInCombat = IsInCombat() && (!GetVictim() || // if IsInCombat() is true and this has no victim
|
||||
bool bInCombat = IsEngaged() && (!GetVictim() || // if IsInCombat() is true and this has no victim
|
||||
!EnsureVictim()->GetCharmerOrOwnerPlayerOrPlayerItself() || // or the victim/owner/charmer is not a player
|
||||
!EnsureVictim()->GetCharmerOrOwnerPlayerOrPlayerItself()->IsGameMaster()); // or the victim/owner/charmer is not a GameMaster
|
||||
|
||||
|
||||
Reference in New Issue
Block a user