Exemplo n.º 1
0
 void SpellHit(Unit* pCaster, const SpellEntry* pSpell)
 {
     if (pSpell->Id == SPELL_UNLOCK_SHACKLE)
     {
         if (Creature *Rageclaw = Unit::GetCreature(*me, RageclawGUID))
             UnlockRageclaw(pCaster);
         else
             me->setDeathState(JUST_DIED);
     }
 }
Exemplo n.º 2
0
 void SpellHit(Unit* pCaster, const SpellEntry* pSpell)
 {
     if (pSpell->Id == SPELL_UNLOCK_SHACKLE)
     {
         if (Rageclaw)
             UnlockRageclaw(pCaster);
         else
             m_creature->setDeathState(JUST_DIED);
     }
 }
Exemplo n.º 3
0
 void SpellHit(Unit* caster, const SpellInfo* spell) override
 {
     if (spell->Id == SPELL_UNLOCK_SHACKLE)
     {
         if (caster->ToPlayer()->GetQuestStatus(QUEST_TROLLS_IS_GONE_CRAZY) == QUEST_STATUS_INCOMPLETE)
         {
             if (Creature* rageclaw = ObjectAccessor::GetCreature(*me, _rageclawGUID))
             {
                 UnlockRageclaw(caster, rageclaw);
                 caster->ToPlayer()->KilledMonster(rageclaw->GetCreatureTemplate(), _rageclawGUID);
                 me->DespawnOrUnsummon();
             }
             else
                 me->setDeathState(JUST_DIED);
         }
     }
 }