Scripts/Icecrown Citadel: Added text and sound for Deathbound Wards

This commit is contained in:
Shauren
2011-05-21 18:35:55 +02:00
parent 84ab669119
commit 9368ef8a5c
2 changed files with 9 additions and 0 deletions
@@ -0,0 +1,5 @@
DELETE FROM `creature_text` WHERE `entry`=37007;
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
(37007,0,0, 'The master''s sanctum has been disturbed!',1,0,0,0,0,16865, 'Deathbound Ward - SAY_TRAP_ACTIVATE'),
(37007,0,1, 'I... awaken!',1,0,0,0,0,16866, 'Deathbound Ward - SAY_TRAP_ACTIVATE'),
(37007,0,2, 'Who... goes there...?',1,0,0,0,0,16867, 'Deathbound Ward - SAY_TRAP_ACTIVATE');
@@ -65,6 +65,9 @@ enum Texts
SAY_MURADIN_INTRO_2 = 14,
SAY_MURADIN_INTRO_3 = 15,
// Deathbound Ward
SAY_TRAP_ACTIVATE = 0,
// Rotting Frost Giant
EMOTE_DEATH_PLAGUE_WARNING = 0,
@@ -1742,6 +1745,7 @@ class spell_icc_sprit_alarm : public SpellScriptLoader
{
if ((*itr)->isAlive() && (*itr)->HasAura(SPELL_STONEFORM))
{
(*itr)->AI()->Talk(SAY_TRAP_ACTIVATE);
(*itr)->RemoveAurasDueToSpell(SPELL_STONEFORM);
if (Unit* target = (*itr)->SelectNearestTarget(150.0f))
(*itr)->AI()->AttackStart(target);