Jump to content

Qowyn

Members
  • Posts

    2
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by Qowyn

  1. 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));
  2. 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)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use