Core/Auras: Corrected SPELL_AURA_MOD_HONOR_GAIN_PCT implementation - it should only increase honor gains from some sources

Port From (https://github.com/TrinityCore/TrinityCore/commit/c56d18287dad88b214b4a33ccd785484b165acbe)
This commit is contained in:
Hondacrx
2025-12-08 14:03:10 -05:00
parent b267c12273
commit b3b42d29ad
8 changed files with 35 additions and 15 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ namespace Game.Chat.Commands
if (handler.HasLowerSecurity(target, ObjectGuid.Empty))
return false;
target.RewardHonor(null, 1, amount);
target.RewardHonor(null, 1, amount, HonorGainSource.Spell);
return true;
}
@@ -65,7 +65,7 @@ namespace Game.Chat.Commands
if (handler.HasLowerSecurity(player, ObjectGuid.Empty))
return false;
handler.GetPlayer().RewardHonor(target, 1);
handler.GetPlayer().RewardHonor(target, 1, -1, HonorGainSource.Kill);
return true;
}
}