fix(Core/Creature): Implement INHABIT_ROOT (#4141)

This commit is contained in:
Kitzunu
2021-01-18 12:22:33 +01:00
committed by GitHub
parent e463e63361
commit eddde2198c
3 changed files with 10 additions and 1 deletions

View File

@@ -482,6 +482,11 @@ bool Creature::UpdateEntry(uint32 Entry, const CreatureData* data, bool changele
ApplySpellImmune(0, IMMUNITY_EFFECT, SPELL_EFFECT_ATTACK_ME, true);
}
if (cInfo->InhabitType & INHABIT_ROOT)
{
SetControlled(true, UNIT_STATE_ROOT);
}
UpdateEnvironmentIfNeeded(3);
return true;