aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-24 22:31:54 -0500
committermegamage <none@none>2009-08-24 22:31:54 -0500
commit87270fefc235d45c2d9116b4a26f0dc32f1a5d7e (patch)
treedfe9897672fc1e33fa8ee1b5fa4f9c299afa2aec /src/game/Level3.cpp
parenta8f394f8510797e60e93a22ed409d860579ad76b (diff)
*Some update of aura system. Remove unnecessary variables and parameters from auraeffect. Always refer to parent aura when finding target/source/caster.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index d51db1d5a7a..6826d2bb53b 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -4382,7 +4382,7 @@ bool ChatHandler::HandleAuraCommand(const char* args)
eff_mask|=1<<i;
}
}
- Aura *Aur = new Aura(spellInfo, eff_mask, NULL, target);
+ Aura *Aur = new Aura(spellInfo, eff_mask, target, target, target);
target->AddAura(Aur);
}
@@ -7352,7 +7352,7 @@ bool ChatHandler::HandleFreezeCommand(const char *args)
//m_session->GetPlayer()->CastSpell(player,spellID,false);
SpellEntry const *spellInfo = sSpellStore.LookupEntry( 9454 );
- Aura *Aur = new Aura(spellInfo, 1, NULL, player);
+ Aura *Aur = new Aura(spellInfo, 1, player, player, player);
player->AddAura(Aur);
//save player