Skip to content

Instantly share code, notes, and snippets.

@rsa
Created September 4, 2011 18:02
Show Gist options
  • Select an option

  • Save rsa/1193234 to your computer and use it in GitHub Desktop.

Select an option

Save rsa/1193234 to your computer and use it in GitHub Desktop.
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