What bug does the patch fix? What features does the patch add?
there is mistake : SetFloatValue(UNIT_FIELD_POWER_COST_MODIFIER+i,0.0f);
UNIT_FIELD_POWER_COST_MODIFIER is uint32 value, not float.
UNIT_FIELD_POWER_COST_MODIFIER // Size: 7, Type: INT, Flags: PRIVATE, OWNER_ONLY
For which repository revision was the patch created?
76xx
Is there a thread in the bug report section or at lighthouse?
no
Who has been writing this patch?
rastikzzz
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 97e198a..e5f8ed7 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -2414,7 +2414,7 @@ void Player::InitStatsForLevel(bool reapplyMods)
SetUInt32Value(PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE,0);
for(int i = 0; i < MAX_SPELL_SCHOOL; ++i)
{
- SetFloatValue(UNIT_FIELD_POWER_COST_MODIFIER+i,0.0f);
+ SetUInt32Value(UNIT_FIELD_POWER_COST_MODIFIER+i,0.0f);
SetFloatValue(UNIT_FIELD_POWER_COST_MULTIPLIER+i,0.0f);
}
// Reset no reagent cost field