[Bug Fix] fixed a bug where it would use npc value instead of faction value in the database. (#4491)

This commit is contained in:
regneq 2024-09-29 14:42:43 -07:00 committed by GitHub
parent 4d11077b21
commit 8d23e710ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7659,10 +7659,10 @@ void Client::SetFactionLevel(
content_db.GetFactionData(&faction_modifiers, class_id, race_id, deity_id, e.faction_id);
if (is_quest) {
if (e.npc_value > 0) {
e.npc_value = -std::abs(e.npc_value);
} else if (e.npc_value < 0) {
e.npc_value = std::abs(e.npc_value);
if (e.value > 0) {
e.value = -std::abs(e.value);
} else if (e.value < 0) {
e.value = std::abs(e.value);
}
}