diff options
author | megamage <none@none> | 2009-01-02 15:47:44 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-02 15:47:44 -0600 |
commit | b3aa49cbaae6a7cf5b69e56e6a0ddaf9dc9d414e (patch) | |
tree | 7fddac3c3a6ed973d272690a0e3eea244b322fbc /src/game/SpellEffects.cpp | |
parent | 14971d29369e06c77bf0452779d8633b8cd71eb5 (diff) |
*Mangos [7008] Remove not used in 303 aura states from code. By DiSlord.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index f1f85825b99..d44014aa151 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1519,33 +1519,6 @@ void Spell::EffectDummy(uint32 i) } break; case SPELLFAMILY_HUNTER: - // Kill command - if(m_spellInfo->SpellFamilyFlags & 0x00080000000000LL) - { - if(m_caster->getClass()!=CLASS_HUNTER) - return; - - // clear hunter crit aura state - m_caster->ModifyAuraState(AURA_STATE_HUNTER_CRIT_STRIKE,false); - - // additional damage from pet to pet target - Pet* pet = m_caster->GetPet(); - if(!pet || !pet->getVictim()) - return; - - uint32 spell_id = 0; - switch (m_spellInfo->Id) - { - case 34026: spell_id = 34027; break; // rank 1 - default: - sLog.outError("Spell::EffectDummy: Spell %u not handled in KC",m_spellInfo->Id); - return; - } - - pet->CastSpell(pet->getVictim(), spell_id, true); - return; - } - switch(m_spellInfo->Id) { case 23989: //Readiness talent @@ -2228,13 +2201,7 @@ void Spell::EffectApplyAura(uint32 i) if(unitTarget->GetTypeId()==TYPEID_PLAYER) // Negative buff should only be applied on players { uint32 spellId = 0; - if(m_spellInfo->CasterAuraStateNot==AURA_STATE_WEAKENED_SOUL || m_spellInfo->TargetAuraStateNot==AURA_STATE_WEAKENED_SOUL) - spellId = 6788; // Weakened Soul - else if(m_spellInfo->CasterAuraStateNot==AURA_STATE_FORBEARANCE || m_spellInfo->TargetAuraStateNot==AURA_STATE_FORBEARANCE) - spellId = 25771; // Forbearance - else if(m_spellInfo->CasterAuraStateNot==AURA_STATE_HYPOTHERMIA) - spellId = 41425; // Hypothermia - else if (m_spellInfo->Mechanic == MECHANIC_BANDAGE) // Bandages + if (m_spellInfo->Mechanic == MECHANIC_BANDAGE) // Bandages spellId = 11196; // Recently Bandaged else if( (m_spellInfo->AttributesEx & 0x20) && (m_spellInfo->AttributesEx2 & 0x20000) ) spellId = 23230; // Blood Fury - Healing Reduction |