*Cleanups, remove obsolete code and minor optimizations in spellauras.cpp and spelleffects.cpp

*Remove GetDummyAura(uint32 spellid) function - it is faster to use GetAuraEffect or GetAura if id is known than iterate threw dummy auras list
*Move Death Strike code from HandleDummyAuraProc to Spell::EffectDummy - original patch by hununza.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-08 16:18:05 +02:00
parent 08f1421ae1
commit 6b4772207f
11 changed files with 136 additions and 731 deletions
@@ -129,14 +129,11 @@ struct TRINITY_DLL_DECL npc_captured_rageclawAI : public ScriptedAI
{
if (spell->Id == SPELL_FREE_RAGECLAW)
{
if (m_creature->GetDummyAura(SPELL_LEFT_CHAIN))
m_creature->RemoveAurasDueToSpell(SPELL_LEFT_CHAIN);
if (m_creature->GetDummyAura(SPELL_RIGHT_CHAIN))
m_creature->RemoveAurasDueToSpell(SPELL_RIGHT_CHAIN);
m_creature->RemoveAurasDueToSpell(SPELL_LEFT_CHAIN);
if (m_creature->GetDummyAura(SPELL_KNEEL))
m_creature->RemoveAurasDueToSpell(SPELL_KNEEL);
m_creature->RemoveAurasDueToSpell(SPELL_RIGHT_CHAIN);
m_creature->RemoveAurasDueToSpell(SPELL_KNEEL);
m_creature->setFaction(m_creature->GetCreatureInfo()->faction_H);