mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
Fixed wrong error message for quest related areatriggers.
This commit is contained in:
parent
9c4be1d308
commit
ec974656ac
1 changed files with 2 additions and 0 deletions
|
|
@ -797,6 +797,8 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPacket & recv_data)
|
||||||
// hack for "Opening of the Dark Portal"
|
// hack for "Opening of the Dark Portal"
|
||||||
if(missingQuest && at->target_mapId == 269)
|
if(missingQuest && at->target_mapId == 269)
|
||||||
SendAreaTriggerMessage("%s", at->requiredFailedText.c_str());
|
SendAreaTriggerMessage("%s", at->requiredFailedText.c_str());
|
||||||
|
else if(missingQuest && mapEntry->IsContinent())// do not report anything for quest areatriggers
|
||||||
|
return;
|
||||||
// hack for TBC heroics
|
// hack for TBC heroics
|
||||||
else if(missingLevel && !mapEntry->IsRaid() && GetPlayer()->GetDifficulty(false) == DUNGEON_DIFFICULTY_HEROIC && mapEntry->addon == 1)
|
else if(missingLevel && !mapEntry->IsRaid() && GetPlayer()->GetDifficulty(false) == DUNGEON_DIFFICULTY_HEROIC && mapEntry->addon == 1)
|
||||||
SendAreaTriggerMessage(GetMangosString(LANG_LEVEL_MINREQUIRED), at->requiredLevel);
|
SendAreaTriggerMessage(GetMangosString(LANG_LEVEL_MINREQUIRED), at->requiredLevel);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue