aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPKX <pkx.icehell@gmail.com>2011-11-10 23:03:10 +0100
committerPKX <pkx.icehell@gmail.com>2011-11-23 15:48:01 +0100
commit47b7e7514961af066f4839d0bb8250d180bf7e69 (patch)
tree7c98597da6cb41fcf42260e5d3f8ff7d2bb6fc32 /src
parent298c162c86130d59c6c60f2fedc7a9b2af034a8d (diff)
Core/Spells: Removed some obsolete code
This removes some unused and obsolete code: - "Test of Faith" now doesn't increase crit anymore; - same goes for "Renewed Hope" (in addition that code isn't working); - "Ebon Plague" part was deleted from Unit::SpellDamageBonus but not from Unit::MeleeDamageBonus (in addition this code is not working anymore) - "Blessing of Sanctuary" was working only on melee damage, plus this is not the way it should be fixed Signed-off-by: PKX <pkx.icehell@gmail.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index b99ccd5f35f..0d7dbf92e50 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -10901,12 +10901,6 @@ bool Unit::isSpellCrit(Unit* victim, SpellInfo const* spellProto, SpellSchoolMas
if (victim->HasAura(6788))
crit_chance+=(*i)->GetAmount();
break;
- case 21: // Test of Faith
- case 6935:
- case 6918:
- if (victim->HealthBelowPct(50))
- crit_chance+=(*i)->GetAmount();
- break;
default:
break;
}
@@ -11131,11 +11125,6 @@ uint32 Unit::SpellHealingBonus(Unit* victim, SpellInfo const* spellProto, uint32
case 3736: // Hateful Totem of the Third Wind / Increased Lesser Healing Wave / LK Arena (4/5/6) Totem of the Third Wind / Savage Totem of the Third Wind
DoneTotal += (*i)->GetAmount();
break;
- case 7997: // Renewed Hope
- case 7998:
- if (victim->HasAura(6788))
- AddPctN(DoneTotalMod, (*i)->GetAmount());
- break;
case 21: // Test of Faith
case 6935:
case 6918:
@@ -11760,23 +11749,6 @@ void Unit::MeleeDamageBonus(Unit* victim, uint32 *pdamage, WeaponAttackType attT
AddPctF(TakenTotalMod, std::max(mod, float((*i)->GetAmount())));
}
break;
- // Blessing of Sanctuary
- // Greater Blessing of Sanctuary
- case 19:
- case 1804:
- {
- if ((*i)->GetSpellInfo()->SpellFamilyName != SPELLFAMILY_PALADIN)
- continue;
-
- if ((*i)->GetMiscValue() & (spellProto ? spellProto->GetSchoolMask() : 0))
- AddPctN(TakenTotalMod, (*i)->GetAmount());
- break;
- }
- // Ebon Plague
- case 1933:
- if ((*i)->GetMiscValue() & (spellProto ? spellProto->GetSchoolMask() : 0))
- AddPctN(TakenTotalMod, (*i)->GetAmount());
- break;
}
}