Skip to content

Commit 8268ab3

Browse files
DDuarteShauren
authored andcommitted
DB/Schema: Change basehp/mana/armor in creature_classlevelstatus to unsigned mediumint
There's no reason to be cheap... (cherry picked from commit 4d8b06d)
1 parent ba0ed27 commit 8268ab3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ALTER TABLE `creature_classlevelstats` CHANGE `basehp0` `basehp0` int unsigned NOT NULL DEFAULT '1';
2+
ALTER TABLE `creature_classlevelstats` CHANGE `basehp1` `basehp1` int unsigned NOT NULL DEFAULT '1';
3+
ALTER TABLE `creature_classlevelstats` CHANGE `basehp2` `basehp2` int unsigned NOT NULL DEFAULT '1';
4+
ALTER TABLE `creature_classlevelstats` CHANGE `basemana` `basemana` int unsigned NOT NULL DEFAULT '1';
5+
ALTER TABLE `creature_classlevelstats` CHANGE `basearmor` `basearmor` int unsigned NOT NULL DEFAULT '1';

src/server/game/Globals/ObjectMgr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10041,7 +10041,7 @@ void ObjectMgr::LoadCreatureClassLevelStats()
1004110041

1004210042
for (uint8 i = 0; i < MAX_EXPANSIONS; ++i)
1004310043
{
10044-
stats.BaseHealth[i] = fields[2 + i].GetUInt16();
10044+
stats.BaseHealth[i] = fields[2 + i].GetUInt32();
1004510045

1004610046
if (stats.BaseHealth[i] == 0)
1004710047
{
@@ -10057,8 +10057,8 @@ void ObjectMgr::LoadCreatureClassLevelStats()
1005710057
}
1005810058
}
1005910059

10060-
stats.BaseMana = fields[5].GetUInt16();
10061-
stats.BaseArmor = fields[6].GetUInt16();
10060+
stats.BaseMana = fields[5].GetUInt32();
10061+
stats.BaseArmor = fields[6].GetUInt32();
1006210062

1006310063
stats.AttackPower = fields[7].GetUInt16();
1006410064
stats.RangedAttackPower = fields[8].GetUInt16();

0 commit comments

Comments
 (0)