DB/Quest: Sniff Out the Enemy

Closes #23006

(cherry picked from commit 806dd940ce)
This commit is contained in:
Sorikoff
2019-02-02 15:06:11 +01:00
committed by Shauren
parent 13aef5574b
commit 31f4bb1436
2 changed files with 56 additions and 51 deletions

View File

@@ -23,7 +23,6 @@ SDCategory: howling_fjord
EndScriptData */
/* ContentData
npc_plaguehound_tracker
npc_apothecary_hanes
EndContentData */
@@ -257,55 +256,6 @@ public:
}
};
/*######
## npc_plaguehound_tracker
######*/
enum Plaguehound
{
QUEST_SNIFF_OUT_ENEMY = 11253
};
class npc_plaguehound_tracker : public CreatureScript
{
public:
npc_plaguehound_tracker() : CreatureScript("npc_plaguehound_tracker") { }
struct npc_plaguehound_trackerAI : public EscortAI
{
npc_plaguehound_trackerAI(Creature* creature) : EscortAI(creature) { }
void Reset() override
{
ObjectGuid summonerGUID;
if (me->IsSummon())
if (Unit* summoner = me->ToTempSummon()->GetSummoner())
if (summoner->GetTypeId() == TYPEID_PLAYER)
summonerGUID = summoner->GetGUID();
if (!summonerGUID)
return;
me->SetWalk(true);
Start(false, false, summonerGUID);
}
void WaypointReached(uint32 waypointId, uint32 /*pathId*/) override
{
if (waypointId != 26)
return;
me->DespawnOrUnsummon();
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_plaguehound_trackerAI(creature);
}
};
/*######
## npc_razael_and_lyana
######*/
@@ -661,7 +611,6 @@ public:
void AddSC_howling_fjord()
{
new npc_apothecary_hanes();
new npc_plaguehound_tracker();
new npc_razael_and_lyana();
new npc_daegarn();
new npc_mindless_abomination();