Пример #1
0
        void Reset() override
        {
            _rageclawGUID.Clear();
            me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);

            float x, y, z;
            me->GetClosePoint(x, y, z, me->GetObjectSize() / 3, 0.1f);

            if (Creature* summon = me->SummonCreature(NPC_RAGECLAW, x, y, z, 0, TEMPSUMMON_DEAD_DESPAWN, 1000))
            {
                _rageclawGUID = summon->GetGUID();
                LockRageclaw(summon);
            }
        }
Пример #2
0
    void Reset()
    {
        Rageclaw = NULL;
        m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);

        float x, y, z;
        m_creature->GetClosePoint(x, y, z, m_creature->GetObjectSize() / 3, 0.1f);

        if (Unit* summon = m_creature->SummonCreature(NPC_RAGECLAW, x, y, z,
            0, TEMPSUMMON_DEAD_DESPAWN, 1000))
        {
            Rageclaw = summon;
            LockRageclaw();
        }
    }