mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 16:03:45 +00:00
Core/Pet: Warlock pet base damage and stat fix (#480)
This commit is contained in:
@@ -3078,8 +3078,8 @@ void ObjectMgr::LoadPetLevelInfo()
|
||||
{
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
// 0 1 2 3 4 5 6 7 8 9
|
||||
QueryResult result = WorldDatabase.Query("SELECT creature_entry, level, hp, mana, str, agi, sta, inte, spi, armor FROM pet_levelstats");
|
||||
// 0 1 2 3 4 5 6 7 8 9 10 11
|
||||
QueryResult result = WorldDatabase.Query("SELECT creature_entry, level, hp, mana, str, agi, sta, inte, spi, armor, min_dmg, max_dmg FROM pet_levelstats");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
@@ -3130,7 +3130,8 @@ void ObjectMgr::LoadPetLevelInfo()
|
||||
pLevelInfo->health = fields[2].GetUInt16();
|
||||
pLevelInfo->mana = fields[3].GetUInt16();
|
||||
pLevelInfo->armor = fields[9].GetUInt32();
|
||||
|
||||
pLevelInfo->min_dmg= fields[10].GetUInt16();
|
||||
pLevelInfo->max_dmg= fields[11].GetUInt16();
|
||||
for (int i = 0; i < MAX_STATS; i++)
|
||||
{
|
||||
pLevelInfo->stats[i] = fields[i+4].GetUInt16();
|
||||
|
||||
Reference in New Issue
Block a user