mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[6966] Fix bug adding XP in DK trigger aura
Use MaNGOS::XP::GetGrayLevel for honor target gray level Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
27175a9ad8
commit
53127cd6d9
4 changed files with 24 additions and 8 deletions
|
|
@ -5874,7 +5874,7 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
|
|||
{
|
||||
if (GetTypeId() != TYPEID_PLAYER)
|
||||
return false;
|
||||
if (!((Player*)this)->RewardPlayerAndGroupAtKill(pVictim))
|
||||
if (!((Player*)this)->isHonorOrXPTarget(pVictim))
|
||||
return false;
|
||||
trigger_spell_id = 50475;
|
||||
basepoints0 = damage * triggerAmount / 100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue