mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Bug Fix] fixed a bug where it would use npc value instead of faction value in the database. (#4491)
This commit is contained in:
parent
4d11077b21
commit
8d23e710ce
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user