Core/Spells: Drop obsolete code
This commit is contained in:
@@ -10897,12 +10897,6 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SPELLFAMILY_PALADIN:
|
|
||||||
// Judgement of Command proc always crits on stunned target
|
|
||||||
if (spellProto->SpellFamilyName == SPELLFAMILY_PALADIN)
|
|
||||||
if (spellProto->SpellFamilyFlags[0] & 0x0000000000800000LL && spellProto->SpellIconID == 561)
|
|
||||||
if (pVictim->HasUnitState(UNIT_STAT_STUNNED))
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case SPELL_DAMAGE_CLASS_RANGED:
|
case SPELL_DAMAGE_CLASS_RANGED:
|
||||||
@@ -11221,14 +11215,6 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
|
|||||||
|
|
||||||
// Taken mods
|
// Taken mods
|
||||||
|
|
||||||
// Healing Wave
|
|
||||||
if (spellProto->SpellFamilyName == SPELLFAMILY_SHAMAN && spellProto->SpellFamilyFlags[0] & 0x40)
|
|
||||||
{
|
|
||||||
// Search for Healing Way on Victim
|
|
||||||
if (AuraEffect const* HealingWay = pVictim->GetAuraEffect(29203, 0))
|
|
||||||
AddPctN(TakenTotalMod, HealingWay->GetAmount());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Tenacity increase healing % taken
|
// Tenacity increase healing % taken
|
||||||
if (AuraEffect const* Tenacity = pVictim->GetAuraEffect(58549, 0))
|
if (AuraEffect const* Tenacity = pVictim->GetAuraEffect(58549, 0))
|
||||||
AddPctN(TakenTotalMod, Tenacity->GetAmount());
|
AddPctN(TakenTotalMod, Tenacity->GetAmount());
|
||||||
|
|||||||
@@ -4023,14 +4023,8 @@ void Spell::SpellDamageWeaponDmg(SpellEffIndex effIndex)
|
|||||||
}
|
}
|
||||||
case SPELLFAMILY_PALADIN:
|
case SPELLFAMILY_PALADIN:
|
||||||
{
|
{
|
||||||
// Seal of Command - Increase damage by 36% on every swing
|
|
||||||
if (m_spellInfo->SpellFamilyFlags[0] & 0x2000000)
|
|
||||||
{
|
|
||||||
totalDamagePercentMod *= 1.36f; // 136% damage
|
|
||||||
}
|
|
||||||
|
|
||||||
// Seal of Command Unleashed
|
// Seal of Command Unleashed
|
||||||
else if (m_spellInfo->Id == 20467)
|
if (m_spellInfo->Id == 20467)
|
||||||
{
|
{
|
||||||
spell_bonus += int32(0.08f * m_caster->GetTotalAttackPowerValue(BASE_ATTACK));
|
spell_bonus += int32(0.08f * m_caster->GetTotalAttackPowerValue(BASE_ATTACK));
|
||||||
spell_bonus += int32(0.13f * m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)));
|
spell_bonus += int32(0.13f * m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)));
|
||||||
|
|||||||
Reference in New Issue
Block a user