Created
May 17, 2012 22:26
-
-
Save tst12/2721984 to your computer and use it in GitHub Desktop.
HOLY RESISTANCE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp | |
index c23e6a1..2fbd575 100644 | |
--- a/src/game/StatSystem.cpp | |
+++ b/src/game/StatSystem.cpp | |
@@ -153,12 +153,12 @@ bool Player::UpdateAllStats() | |
void Player::UpdateResistances(uint32 school) | |
{ | |
- if(school > SPELL_SCHOOL_NORMAL) | |
+ if (school > SPELL_SCHOOL_HOLY) | |
{ | |
float value = GetTotalAuraModValue(UnitMods(UNIT_MOD_RESISTANCE_START + school)); | |
SetResistance(SpellSchools(school), int32(value)); | |
} | |
- else | |
+ else if (school == SPELL_SCHOOL_NORMAL) | |
UpdateArmor(); | |
CallForAllControlledUnits(ApplyScalingBonusWithHelper(SCALING_TARGET_RESISTANCE, school, false),CONTROLLED_PET|CONTROLLED_GUARDIANS); | |
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp | |
index c27db66..a768a9f 100644 | |
--- a/src/game/Unit.cpp | |
+++ b/src/game/Unit.cpp | |
@@ -10522,7 +10522,7 @@ bool Unit::HandleStatModifier(UnitMods unitMod, UnitModifierType modifierType, f | |
case UNIT_MOD_RUNE: | |
case UNIT_MOD_RUNIC_POWER: UpdateMaxPower(GetPowerTypeByAuraGroup(unitMod)); break; | |
- case UNIT_MOD_RESISTANCE_HOLY: | |
+ case UNIT_MOD_RESISTANCE_HOLY: break; | |
case UNIT_MOD_RESISTANCE_FIRE: | |
case UNIT_MOD_RESISTANCE_NATURE: | |
case UNIT_MOD_RESISTANCE_FROST: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment