mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
*Mangos [7008] Remove not used in 303 aura states from code. By DiSlord.
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user