Count damage done by Deathknight Understudies towards damage done by players in Instructor Razuvious encounter.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-09-08 22:47:18 +02:00
parent c06a52b433
commit 6facec59bd

View File

@@ -61,7 +61,16 @@ struct TRINITY_DLL_DECL boss_razuviousAI : public BossAI
if (!(rand()%3))
DoPlaySoundToSet(me, SOUND_SLAY);
}
void DamageTaken(Unit* pDone_by, uint32& uiDamage)
{
// Damage done by the controlled Death Knight understudies should also count toward damage done by players
if(pDone_by->GetTypeId() == TYPEID_UNIT && (pDone_by->GetEntry() == 16803 || pDone_by->GetEntry() == 29941)
{
me->LowerPlayerDamageReq(uiDamage);
}
}
void JustDied(Unit* killer)
{
_JustDied();