diff options
| author | QAston <none@none> | 2009-08-08 16:18:05 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-08-08 16:18:05 +0200 |
| commit | 6b4772207fc4a6af1c9942d0057b9005aa38452e (patch) | |
| tree | 84c2cdf2b9b44623e2e12839dd9f59502fb1c8c3 /src/bindings/scripts | |
| parent | 08f1421ae187e43c3d5060f6a467d5b861159823 (diff) | |
*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
Diffstat (limited to 'src/bindings/scripts')
| -rw-r--r-- | src/bindings/scripts/scripts/zone/zuldrak/zuldrak.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/bindings/scripts/scripts/zone/zuldrak/zuldrak.cpp b/src/bindings/scripts/scripts/zone/zuldrak/zuldrak.cpp index bcb2d1f4957..b1afaa9ed5e 100644 --- a/src/bindings/scripts/scripts/zone/zuldrak/zuldrak.cpp +++ b/src/bindings/scripts/scripts/zone/zuldrak/zuldrak.cpp @@ -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); - - if (m_creature->GetDummyAura(SPELL_KNEEL)) - m_creature->RemoveAurasDueToSpell(SPELL_KNEEL); + m_creature->RemoveAurasDueToSpell(SPELL_LEFT_CHAIN); + + m_creature->RemoveAurasDueToSpell(SPELL_RIGHT_CHAIN); + + m_creature->RemoveAurasDueToSpell(SPELL_KNEEL); m_creature->setFaction(m_creature->GetCreatureInfo()->faction_H); |
