[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:
DiSlord 2008-12-28 23:31:23 +03:00
parent 27175a9ad8
commit 53127cd6d9
4 changed files with 24 additions and 8 deletions

View file

@ -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;