feat: Allow Float Rep Values (#15818)

This commit is contained in:
ZhengPeiRu21
2023-04-22 07:42:00 -06:00
committed by GitHub
parent a146bcb0e9
commit 0667454dd9
3 changed files with 7 additions and 4 deletions

View File

@@ -7658,10 +7658,10 @@ void ObjectMgr::LoadReputationOnKill()
repOnKill.RepFaction2 = fields[2].Get<int16>();
repOnKill.IsTeamAward1 = fields[3].Get<bool>();
repOnKill.ReputationMaxCap1 = fields[4].Get<uint8>();
repOnKill.RepValue1 = fields[5].Get<int32>();
repOnKill.RepValue1 = fields[5].Get<float>();
repOnKill.IsTeamAward2 = fields[6].Get<bool>();
repOnKill.ReputationMaxCap2 = fields[7].Get<uint8>();
repOnKill.RepValue2 = fields[8].Get<int32>();
repOnKill.RepValue2 = fields[8].Get<float>();
repOnKill.TeamDependent = fields[9].Get<uint8>();
if (!GetCreatureTemplate(creature_id))