mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
*Should fix a crash, thanks Drahy
--HG-- branch : trunk
This commit is contained in:
@@ -545,7 +545,8 @@ void Creature::Update(uint32 diff)
|
||||
break;
|
||||
|
||||
bool bNotInCombatOrIsPolymorphed = (!isInCombat() || IsPolymorphed() || !getVictim() ||
|
||||
getVictim()->GetCharmerOrOwnerPlayerOrPlayerItself()->isGameMaster());
|
||||
(getVictim()->GetCharmerOrOwnerPlayerOrPlayerItself() &&
|
||||
getVictim()->GetCharmerOrOwnerPlayerOrPlayerItself()->isGameMaster()));
|
||||
|
||||
if(m_regenTimer > diff && !bNotInCombatOrIsPolymorphed)
|
||||
m_regenTimer -= diff;
|
||||
|
||||
Reference in New Issue
Block a user