Codestyle.

(cherry picked from commit ec023c3032b55bcfdc83d458ac79204bb25c7aed)
This commit is contained in:
SnapperRy
2017-11-11 20:05:40 +01:00
committed by joschiwald
parent afdc4dd6b3
commit ece0c955fc
2 changed files with 3 additions and 3 deletions
@@ -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);