void Revive(bool bOnlyFlags = false) { m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); m_creature->SetStandState(UNIT_STAND_STATE_STAND); if (bOnlyFlags) return; m_creature->SetHealth(m_creature->GetMaxHealth()); m_uiPhase = PHASE_NORMAL; DoResetThreat(); Reset(); // Assume Attack if (m_creature->getVictim()) m_creature->GetMotionMaster()->MoveChase(m_creature->getVictim()); OnRevive(); }
void CActorControllerComponent::OnResetState() { OnRevive(); }