move cast entry flag 29296 to only be used when completing entrance flag

This commit is contained in:
Jelle Meeus
2024-08-04 17:34:01 +02:00
parent dd93a5fc73
commit 32978e43b4

View File

@@ -1482,7 +1482,6 @@ public:
return;
// Cast on player Naxxramas Entry Flag Trigger DND - Classic (spellID: 29296)
player->CastSpell(player, 29296, true);
if (player->GetQuestStatus(NAXX40_ENTRANCE_FLAG) != QUEST_STATUS_REWARDED)
{
// Mark player as having entered
@@ -1490,6 +1489,8 @@ public:
player->AddQuest(quest, nullptr);
player->CompleteQuest(NAXX40_ENTRANCE_FLAG);
player->RewardQuest(quest, 0, player, false, false);
// Cast on player Naxxramas Entry Flag Trigger DND - Classic (spellID: 29296)
player->CastSpell(player, 29296, true); // for visual effect only, possible crash if cast on login
}
}
};