npc_blackfathom_deeps_eventAI(Creature* pCreature) : ScriptedAI(pCreature) { if (pCreature->isSummon()) { pCreature->SetHomePosition(HomePosition); AttackPlayer(); } pInstance = pCreature->GetInstanceScript(); }
npc_blackfathom_deeps_eventAI(Creature* creature) : ScriptedAI(creature) { if (creature->IsSummon()) { creature->SetHomePosition(HomePosition); AttackPlayer(); } instance = creature->GetInstanceScript(); }
npc_blackfathom_deeps_eventAI(Creature* pCreature) : ScriptedAI(pCreature) { //if (pCreature->isSummon()) if (pCreature->isPet()) //TODO: Use line above { pCreature->SetHomePosition(HomePosition); AttackPlayer(); } pInstance = pCreature->GetInstanceData(); }