mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Scripts/Icecrown Citadel: Added emote warning for Mutated Infection at Rotface
This commit is contained in:
3
sql/updates/world/2011_08_01_02_world_creature_text.sql
Normal file
3
sql/updates/world/2011_08_01_02_world_creature_text.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `creature_text` WHERE `entry`=36627 AND `groupid`=9;
|
||||
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
|
||||
(36627,9,0,'|TInterface\Icons\ability_creature_disease_02.blp:16|tYou have |cFF00FF00Mutated Infection!|r',42,0,0,0,0,0,'Rotface - EMOTE_MUTATED_INFECTION');
|
||||
@@ -35,6 +35,7 @@ enum Texts
|
||||
SAY_KILL = 6,
|
||||
SAY_BERSERK = 7,
|
||||
SAY_DEATH = 8,
|
||||
EMOTE_MUTATED_INFECTION = 9,
|
||||
|
||||
EMOTE_PRECIOUS_ZOMBIES = 0,
|
||||
};
|
||||
@@ -195,7 +196,10 @@ class boss_rotface : public CreatureScript
|
||||
if (!target)
|
||||
target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true, -MUTATED_INFECTION);
|
||||
if (target)
|
||||
{
|
||||
me->CastCustomSpell(SPELL_MUTATED_INFECTION, SPELLVALUE_MAX_TARGETS, 1, target, false);
|
||||
Talk(EMOTE_MUTATED_INFECTION, target->GetGUID());
|
||||
}
|
||||
events.ScheduleEvent(EVENT_MUTATED_INFECTION, infectionCooldown);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user