Codestyle.

This commit is contained in:
SnapperRy
2016-10-29 16:49:10 +02:00
parent e55641f378
commit ec023c3032
2 changed files with 3 additions and 3 deletions

View File

@@ -578,7 +578,7 @@ public:
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) 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

@@ -716,8 +716,8 @@ public:
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) override
{
if (player && player->IsAlive())
if (const Quest* quest = sObjectMgr->GetQuestTemplate(QUEST_MESSAGE_FROM_THE_WEST))
if (player->IsAlive())
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);