Skip to content

Commit

Permalink
PVP: Granting honor on PvP-Kill blizzlike (#535)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
huptiq authored Jul 3, 2024
1 parent 8d77ef1 commit 19ba20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 19ba20c

Please sign in to comment.