From 19ba20cd3211b1fb06c5bfeebdef75df81241a70 Mon Sep 17 00:00:00 2001 From: huptiq <78695922+huptiq@users.noreply.github.com> Date: Wed, 3 Jul 2024 12:57:18 +0200 Subject: [PATCH] PVP: Granting honor on PvP-Kill blizzlike (#535) Added "IsTrivialLevelDifference" to grant honor when the victim has green, yellow or red name. According to blizzards wow website in 2005 (waybackmachine) honor is granted when the name is green, yellow or red. "Honorable Kill: killing a player character within your XP range, i.e. a character whose name is colored (green to red), not grey. [...]" source: https://web.archive.org/web/20050619021442/http://www.worldofwarcraft.com/pvp/honorguide.html --- src/game/Entities/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Entities/Player.cpp b/src/game/Entities/Player.cpp index f769eab7b7..89f2e1cde6 100644 --- a/src/game/Entities/Player.cpp +++ b/src/game/Entities/Player.cpp @@ -6603,7 +6603,7 @@ bool Player::RewardHonor(Unit* uVictim, uint32 groupsize) if (GetTeam() == pVictim->GetTeam()) return false; - if (GetLevel() < (pVictim->GetLevel() + 5)) + if (!MaNGOS::XP::IsTrivialLevelDifference(GetLevel(), pVictim->GetLevel())) { AddHonorCP(MaNGOS::Honor::HonorableKillPoints(this, pVictim, groupsize), HONORABLE, pVictim); return true;