fix(DB): Scholomance Occultists behavior (#5314)

This commit is contained in:
v.tihomirov
2021-04-25 22:02:52 +03:00
committed by GitHub
parent eaf90b6b43
commit 620eb8e9f3
3 changed files with 136 additions and 0 deletions

View File

@@ -441,10 +441,13 @@ bool Creature::UpdateEntry(uint32 Entry, const CreatureData* data, bool changele
SetAttackTime(RANGED_ATTACK, cInfo->RangeAttackTime);
uint32 previousHealth = GetHealth();
uint32 previousPlayerDamageReq = m_PlayerDamageReq;
SelectLevel(changelevel);
if (previousHealth > 0)
{
SetHealth(previousHealth);
m_PlayerDamageReq = previousPlayerDamageReq;
}
SetMeleeDamageSchool(SpellSchools(cInfo->dmgschool));