From 6facec59bdbab996fcdb6fddf4967f3574e70993 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Tue, 8 Sep 2009 22:47:18 +0200 Subject: Count damage done by Deathknight Understudies towards damage done by players in Instructor Razuvious encounter. --HG-- branch : trunk --- .../scripts/scripts/northrend/naxxramas/boss_razuvious.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/bindings/scripts') diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_razuvious.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_razuvious.cpp index 2ade34b6e6d..2d8b9bc253c 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_razuvious.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_razuvious.cpp @@ -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(); -- cgit v1.2.3