fix(Scripts/IcecrownCitadel): Tirion Fordring attacks the Lich King empty-handed (#15823)

* Fixed Tirion Fordring's final stage attacking the Lich King empty-handed

* Tirion Fordring's uses text in BroadcastText to speak

* Code format changes

* Add data to the data table

* Update rev_1680658371591699800.sql

Change from INSERT to INSERT/INSERT

* Update and rename boss_the_lich_king.cpp to boss_the_lich_king.cpp的

Remove useless comments

* Rename boss_the_lich_king.cpp的 to boss_the_lich_king.cpp

The input method caused an unexpected rename

* Delete the extra rows

* Update boss_the_lich_king.cpp

Delete references that can be omitted
This commit is contained in:
daobashun
2023-04-27 10:04:37 +08:00
committed by GitHub
parent 42848897d1
commit fa59b30184
2 changed files with 8 additions and 4 deletions

View File

@@ -61,6 +61,7 @@ enum Texts
SAY_TIRION_INTRO_2 = 1,
SAY_TIRION_OUTRO_1 = 2,
SAY_TIRION_OUTRO_2 = 3,
SAY_TIRION_OUTRO_3 = 4,
// Terenas Menethil (outro)
SAY_TERENAS_OUTRO_1 = 0,
@@ -343,6 +344,7 @@ enum MiscData
{
LIGHT_SNOWSTORM = 2490,
LIGHT_SOULSTORM = 2508,
EQUIP_ASHBRINGER = 13262,
MUSIC_FROZEN_THRONE = 17457,
MUSIC_SPECIAL = 17458, // Summon Shambling Horror, Remorseless Winter, Quake, Summon Val'kyr Periodic, Harvest Soul, Vile Spirits
MUSIC_FURY_OF_FROSTMOURNE = 17459,
@@ -833,8 +835,7 @@ public:
_bFordringMustFallYell = true;
if (Creature* tirion = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_HIGHLORD_TIRION_FORDRING)))
{
tirion->Yell("The Lich King must fall!", LANG_UNIVERSAL);
tirion->PlayDirectSound(17389);
tirion->AI()->Talk(SAY_TIRION_OUTRO_3);
}
}
}
@@ -1354,7 +1355,7 @@ public:
{
// remove glow on ashbringer and tirion
me->RemoveAllAuras();
SetEquipmentSlots(true);
SetEquipmentSlots(false, EQUIP_ASHBRINGER);
}
}
@@ -1595,7 +1596,7 @@ public:
lichKing->SetImmuneToNPC(false);
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE);
me->RemoveAllAuras();
SetEquipmentSlots(true);
SetEquipmentSlots(false, EQUIP_ASHBRINGER);
me->Attack(lichKing, true);
me->GetMotionMaster()->MovePoint(0, 512.16f, -2120.25f, 840.86f);
}