void SpellHit(Unit* pCaster, const SpellEntry* pSpell) override { // If Ranshalla cast the torch lightening spell for too long she will trigger SPELL_RANSHALLA_DESPAWN (quest failed and despawn) if (pSpell->Id == SPELL_RANSHALLA_DESPAWN) { FailQuestForPlayerAndGroup(); m_creature->ForcedDespawn(); } }
void JustReachedHome() override { if (HasEscortState(STATE_ESCORT_ESCORTING)) { if (!m_bIsSuccess) { FailQuestForPlayerAndGroup(); m_creature->ForcedDespawn(); } } }