Qowyn
Members-
Posts
2 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Qowyn's Achievements
Newbie (1/3)
0
Reputation
-
Mangos Version: 8947 SD2 Version: 1513 Database Name and Version : UDB 0.11.6 385 How it SHOULD work: locales for gossips should display option_text_loc in gossip menu and box_text_loc in confirmation box How it DOES work: locales for gossips display box_text_loc from prev language in gossip menu and option_text_loc in confirmation box Cause: Wrong starting offset for fields array in ObjectMgr::LoadGossipMenuItemsLocales() Solution: diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 117cd08..d4caed9 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -376,7 +376,7 @@ void ObjectMgr::LoadGossipMenuItemsLocales() for(int i = 1; i < MAX_LOCALE; ++i) { - std::string str = fields[1+2*(i-1)].GetCppString(); + std::string str = fields[2+2*(i-1)].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i)); @@ -388,7 +388,7 @@ void ObjectMgr::LoadGossipMenuItemsLocales() data.OptionText[idx] = str; } } - str = fields[1+2*(i-1)+1].GetCppString(); + str = fields[2+2*(i-1)+1].GetCppString(); if(!str.empty()) { int idx = GetOrNewIndexForLocale(LocaleConstant(i));
-
Fixes triggered spell of "Aegis of Preservation" (SpellID: 23780) Index: src/game/Unit.cpp =================================================================== --- src/game/Unit.cpp (revision 5499) +++ src/game/Unit.cpp (working copy) @@ -5882,6 +5882,13 @@ return; } + switch (auraSpellInfo->Id) + { + case 23780: //Aegis of Preservation: triggers not existing spell + CastSpell(this, 23781, true, castItem, triggeredByAura); //Aegis Heal + return; + } + // standard non-dummy case uint32 trigger_spell_id = auraSpellInfo->EffectTriggerSpell[triggeredByAura->GetEffIndex()]; if(!trigger_spell_id)
Contact Us
To contact us
click here
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
Copyright © getMaNGOS. All rights Reserved.
This website is in no way associated with or endorsed by Blizzard Entertainment®
This website is in no way associated with or endorsed by Blizzard Entertainment®