aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-09-08 22:47:18 +0200
committerMachiavelli <none@none>2009-09-08 22:47:18 +0200
commit6facec59bdbab996fcdb6fddf4967f3574e70993 (patch)
tree168b29d9cdc7228ea44cd89af30d719611181426
parentc06a52b433327b02ae2d93b5a8d71454bf424841 (diff)
Count damage done by Deathknight Understudies towards damage done by players in Instructor Razuvious encounter.
--HG-- branch : trunk
-rw-r--r--src/bindings/scripts/scripts/northrend/naxxramas/boss_razuvious.cpp11
1 files changed, 10 insertions, 1 deletions
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();