mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
fix(Core/MiscHandler): Dungeon requirements Message (#16701)
* fix(DB/Gameobject): fix towercanno error location in Flamewatch Tower adjusted wintergrasp towercanno position * fix(Core/MiscHandler): dungeon access requirements message parameter requirements level variable always 0 requirements item cannot get from locale Co-authored-by: aviar <aviar@sina.com> * revert: random edits --------- Co-authored-by: aviar <aviar@sina.com> Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
@@ -6880,7 +6880,13 @@ bool Player::Satisfy(DungeonProgressionRequirements const* ar, uint32 target_map
|
||||
}
|
||||
else if (missingPlayerItems.size())
|
||||
{
|
||||
GetSession()->SendAreaTriggerMessage(GetSession()->GetAcoreString(LANG_LEVEL_MINREQUIRED_AND_ITEM), LevelMin, sObjectMgr->GetItemTemplate(missingPlayerItems[0]->id)->Name1.c_str());
|
||||
LocaleConstant loc_idx = GetSession()->GetSessionDbLocaleIndex();
|
||||
std::string name = sObjectMgr->GetItemTemplate(missingPlayerItems[0]->id)->Name1;
|
||||
if (ItemLocale const* il = sObjectMgr->GetItemLocale(missingPlayerItems[0]->id))
|
||||
{
|
||||
ObjectMgr::GetLocaleString(il->Name, loc_idx, name);
|
||||
}
|
||||
GetSession()->SendAreaTriggerMessage(GetSession()->GetAcoreString(LANG_LEVEL_MINREQUIRED_AND_ITEM), ar->levelMin, name.c_str());
|
||||
}
|
||||
else if (LevelMin)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user