Core/Spells: Drop obsolete code

This commit is contained in:
tobmaps
2011-05-12 04:25:55 +07:00
parent ca24fa449f
commit 08022d6d4c
2 changed files with 1 additions and 21 deletions
-14
View File
@@ -10897,12 +10897,6 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM
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:
@@ -11221,14 +11215,6 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
// 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
if (AuraEffect const* Tenacity = pVictim->GetAuraEffect(58549, 0))
AddPctN(TakenTotalMod, Tenacity->GetAmount());
+1 -7
View File
@@ -4023,14 +4023,8 @@ void Spell::SpellDamageWeaponDmg(SpellEffIndex effIndex)
}
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
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.13f * m_caster->SpellBaseDamageBonus(GetSpellSchoolMask(m_spellInfo)));