mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7008] Remove not used in 303 aura states from code
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
48d6043eed
commit
dc8649a86a
6 changed files with 14 additions and 88 deletions
|
|
@ -1459,32 +1459,6 @@ void Spell::EffectDummy(uint32 i)
|
|||
m_damage+= damage;
|
||||
return;
|
||||
}
|
||||
// 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)
|
||||
{
|
||||
|
|
@ -2225,13 +2199,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue