mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
some more cleanup, a5f8c0d follow-up
This commit is contained in:
@@ -799,11 +799,7 @@ void Creature::Update(uint32 diff)
|
||||
|
||||
if (m_regenTimer == 0)
|
||||
{
|
||||
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
|
||||
|
||||
if (!IsInEvadeMode() && (!bInCombat || IsPolymorphed() || CanNotReachTarget())) // regenerate health if not in combat or if polymorphed
|
||||
if (!IsInEvadeMode() && (!IsEngaged() || IsPolymorphed() || CanNotReachTarget())) // regenerate health if not in combat or if polymorphed
|
||||
RegenerateHealth();
|
||||
|
||||
if (GetPowerType() == POWER_ENERGY)
|
||||
|
||||
Reference in New Issue
Block a user