[7626] Fixed: Typo in InitStatsForLevel Author: rastikzzz
--HG-- branch : trunk
This commit is contained in:
@@ -1765,8 +1765,6 @@ float Map::GetVmapHeight(float x, float y, float z, bool useMaps) const
|
|||||||
return vmapHeight;
|
return vmapHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "World.h"
|
|
||||||
|
|
||||||
uint16 Map::GetAreaFlag(float x, float y, float z) const
|
uint16 Map::GetAreaFlag(float x, float y, float z) const
|
||||||
{
|
{
|
||||||
uint16 areaflag;
|
uint16 areaflag;
|
||||||
|
|||||||
+1
-1
@@ -2474,7 +2474,7 @@ void Player::InitStatsForLevel(bool reapplyMods)
|
|||||||
SetUInt32Value(PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE,0);
|
SetUInt32Value(PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE,0);
|
||||||
for(int i = 0; i < MAX_SPELL_SCHOOL; ++i)
|
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);
|
||||||
SetFloatValue(UNIT_FIELD_POWER_COST_MULTIPLIER+i,0.0f);
|
SetFloatValue(UNIT_FIELD_POWER_COST_MULTIPLIER+i,0.0f);
|
||||||
}
|
}
|
||||||
// Reset no reagent cost field
|
// Reset no reagent cost field
|
||||||
|
|||||||
Reference in New Issue
Block a user