Core/Corpses: Fixed loading phaseMask if its greater than 255

This commit is contained in:
Shauren committed 2011-03-17 09:42:33 +01:00
1 parent a959618f31
commit 660e22faeb
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -1095,9 +1095,9 @@ void Guardian::UpdateMaxHealth()
}
float value = GetModifierValue(unitMod, BASE_VALUE) + GetCreateHealth();
value *= GetModifierValue(unitMod, BASE_PCT);
value += GetModifierValue(unitMod, TOTAL_VALUE) + stamina * multiplicator;
value *= GetModifierValue(unitMod, TOTAL_PCT);
value *= GetModifierValue(unitMod, BASE_PCT);
value += GetModifierValue(unitMod, TOTAL_VALUE) + stamina * multiplicator;
value *= GetModifierValue(unitMod, TOTAL_PCT);
SetMaxHealth((uint32)value);
}