mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-04 08:07:09 +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)
|
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() || // or the victim/owner/charmer is not a player
|
||||||
!EnsureVictim()->GetCharmerOrOwnerPlayerOrPlayerItself()->IsGameMaster()); // or the victim/owner/charmer is not a GameMaster
|
!EnsureVictim()->GetCharmerOrOwnerPlayerOrPlayerItself()->IsGameMaster()); // or the victim/owner/charmer is not a GameMaster
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user