Exemple #1
0
 void SetData(uint32 data, uint32 value) override
 {
     if (data == DATA_CRUSHER_PACK_ID)
     {
         _myPack = SummonGroups(value);
         me->SetReactState(_myPack ? REACT_PASSIVE : REACT_AGGRESSIVE);
     }
 }
Exemple #2
0
        void EnterCombat(Unit* /*who*/)
        {
            _EnterCombat();

            SetGroups();
            SummonGroups();
            CastTeleport();

            if (instance->GetData(DATA_UROM_PLATAFORM) != 3)
                instance->SetData(DATA_UROM_PLATAFORM, instance->GetData(DATA_UROM_PLATAFORM)+1);
        }
Exemple #3
0
        void EnterCombat(Unit* /*pWho*/)
        {
            if (pInstance)
                pInstance->SetData(DATA_UROM_EVENT, IN_PROGRESS);

            SetGroups();
            SummonGroups();
            CastTeleport();

            if (pInstance && pInstance->GetData(DATA_UROM_PLATAFORM) != 3)
                pInstance->SetData(DATA_UROM_PLATAFORM, pInstance->GetData(DATA_UROM_PLATAFORM)+1);
        }
Exemple #4
0
 npc_hadronox_crusherPackAI(Creature* creature, Position const* positions) : ScriptedAI(creature), _instance(creature->GetInstanceScript()), _positions(positions), _myPack(SummonGroups(0)), _doFacing(false) { }