Codestyle.

(cherry picked from commit ec023c3032)
This commit is contained in:
SnapperRy
2016-10-29 16:49:10 +02:00
committed by joschiwald
parent afdc4dd6b3
commit ece0c955fc
2 changed files with 3 additions and 3 deletions

View File

@@ -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)))
{

View File

@@ -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);