private void ScriptedAI_OnDestroy() { _stats = null; _threat = null; _tEntry = null; _target = null; _creature = null; _movement = null; }
private void ScriptedAI_OnInitialize() { _stats = _parent.RequiredComponent <StatsMgr>(); _threat = _parent.RequiredComponent <ThreatMgr>(); _movement = _parent.RequiredComponent <MovementGenerator>(); _tEntry = new TargetEntry() { SpellID = _stats.MeleeSkill, Upgrade = 0 }; }