*Prevent getting wrong values from default type conversion.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-02-12 20:37:48 +01:00
1 parent 9f3a35d799
commit c4c92e27f2
2 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -6298,7 +6298,7 @@ bool Player::RewardHonor(Unit *uVictim, uint32 groupsize, float honor, bool pvpt
honor /= groupsize;
// apply honor multiplier from aura (not stacking-get highest)
honor *= (float(GetMaxPositiveAuraModifier(SPELL_AURA_MOD_HONOR_GAIN_PCT))+100.0f)/100.0f;
honor = int32(float(honor) * (float(GetMaxPositiveAuraModifier(SPELL_AURA_MOD_HONOR_GAIN_PCT))+100.0f)/100.0f);
honor *= (((float)urand(8,12))/10); // approx honor: 80% - 120% of real honor
}