diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-01-16 18:11:33 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-01-16 18:11:33 +0100 |
commit | df334f194c7b0da49fd1c1a4f821df78a0e25fb8 (patch) | |
tree | 9f85ab22eebe19b8a0a389e93fa7d83dc29f423b | |
parent | a370103c037b7fb21f9df4ced47137bb64775952 (diff) |
Scripts/Icecrown Citadel: Added check on damage done by Ball of Inferno Flame for The Orb Whisperer achievement, thanks Shocker for noticing
-rw-r--r-- | src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp index 70cc7a331cf..db79ed39b2f 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_blood_prince_council.cpp @@ -1059,7 +1059,7 @@ class npc_ball_of_flame : public CreatureScript struct npc_ball_of_flameAI : public ScriptedAI { - npc_ball_of_flameAI(Creature* creature) : ScriptedAI(creature) + npc_ball_of_flameAI(Creature* creature) : ScriptedAI(creature), instance(creature->GetInstanceScript()) { despawnTimer = 0; } @@ -1102,6 +1102,15 @@ class npc_ball_of_flame : public CreatureScript } } + void DamageDealt(Unit* /*target*/, uint32& damage, DamageEffectType damageType) + { + if (!instance || damageType != SPELL_DIRECT_DAMAGE) + return; + + if (damage > RAID_MODE<uint32>(23000, 25000, 23000, 25000)) + instance->SetData(DATA_ORB_WHISPERER_ACHIEVEMENT, uint32(false)); + } + void UpdateAI(const uint32 diff) { if (!despawnTimer) @@ -1117,6 +1126,7 @@ class npc_ball_of_flame : public CreatureScript } private: + InstanceScript* instance; uint64 chaseGUID; uint32 despawnTimer; }; |