mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
@@ -577,7 +577,7 @@ public:
|
||||
|
||||
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/, bool /*entered*/) override
|
||||
{
|
||||
if (player && player->IsAlive())
|
||||
if (player->IsAlive())
|
||||
if (InstanceScript* instance = player->GetInstanceScript())
|
||||
if (Creature* infiltrator = ObjectAccessor::GetCreature(*player, instance->GetGuidData(DATA_SCARSHIELD_INFILTRATOR)))
|
||||
{
|
||||
|
||||
@@ -717,8 +717,8 @@ public:
|
||||
|
||||
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/, bool entered) override
|
||||
{
|
||||
if (player && player->IsAlive() && entered)
|
||||
if (const Quest* quest = sObjectMgr->GetQuestTemplate(QUEST_MESSAGE_FROM_THE_WEST))
|
||||
if (player->IsAlive() && entered)
|
||||
if (Quest const* quest = sObjectMgr->GetQuestTemplate(QUEST_MESSAGE_FROM_THE_WEST))
|
||||
if (player->CanTakeQuest(quest, false))
|
||||
if (Creature* creature = player->FindNearestCreature(NPC_MESSENGER_TORVUS, 50.0f, true))
|
||||
creature->AI()->Talk(TALK_0, player);
|
||||
|
||||
Reference in New Issue
Block a user