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

This commit is contained in:
Shauren
2025-09-24 00:21:31 +02:00
parent 5fad0fb43a
commit c56d18287d
10 changed files with 43 additions and 21 deletions

View File

@@ -72,7 +72,7 @@ public:
if (handler->HasLowerSecurity(target, ObjectGuid::Empty))
return false;
target->RewardHonor(nullptr, 1, amount);
target->RewardHonor(nullptr, 1, amount, HonorGainSource::Spell);
return true;
}
@@ -91,7 +91,7 @@ public:
if (handler->HasLowerSecurity(player, ObjectGuid::Empty))
return false;
handler->GetSession()->GetPlayer()->RewardHonor(target, 1);
handler->GetSession()->GetPlayer()->RewardHonor(target, 1, -1, HonorGainSource::Kill);
return true;
}