Created
September 4, 2011 18:02
-
-
Save rsa/1193234 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/base/BSW_ai.cpp b/base/BSW_ai.cpp | |
| index de5f885..59d5145 100644 | |
| --- a/base/BSW_ai.cpp | |
| +++ b/base/BSW_ai.cpp | |
| @@ -751,9 +751,8 @@ bool BSWScriptedAI::_doAura(uint32 SpellID, Unit* pTarget, SpellEffectIndex inde | |
| } | |
| else | |
| { | |
| - aura = CreateAura(spell, index, &_basepoint, holder, pTarget); | |
| + aura = holder->CreateAura(spell, index, &_basepoint, pTarget, m_creature, NULL); | |
| holder->SetAuraDuration(aura->GetAuraMaxDuration()); | |
| - holder->AddAura(aura, index); | |
| } | |
| if (addedToExisting) | |
| diff --git a/scripts/northrend/ulduar/ulduar/ulduar_teleport.cpp b/scripts/northrend/ulduar/ulduar/ulduar_teleport.cpp | |
| index d63dfdb..66f14ee 100644 | |
| --- a/scripts/northrend/ulduar/ulduar/ulduar_teleport.cpp | |
| +++ b/scripts/northrend/ulduar/ulduar/ulduar_teleport.cpp | |
| @@ -79,9 +79,8 @@ bool GOGossipSelect_go_ulduar_teleporter(Player *pPlayer, GameObject* pGo, uint3 | |
| if (PortalLoc[action].spellID != 0 ) | |
| if (SpellEntry const* spell = (SpellEntry *)GetSpellStore()->LookupEntry(PortalLoc[action].spellID)) | |
| { | |
| - SpellAuraHolder *holder = CreateSpellAuraHolder(spell, pPlayer, pPlayer); | |
| - Aura *aura = CreateAura(spell, EFFECT_INDEX_2, NULL, holder, pPlayer); | |
| - holder->AddAura(aura, EFFECT_INDEX_2); | |
| + SpellAuraHolder* holder = CreateSpellAuraHolder(spell, pPlayer, pPlayer); | |
| + Aura *aura = holder->CreateAura(spell, EFFECT_INDEX_2, NULL, pPlayer, pPlayer, NULL); | |
| pPlayer->AddSpellAuraHolder(holder); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment