Skip to content

Commit 4e28543

Browse files
authored
Scripts/Steam Vault: Add missing text to Thespia & linked aggro (#31037)
1 parent e5a3a4a commit 4e28543

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--
2+
UPDATE `creature_text` SET `Text` = "Enjoy the storm warm bloods!", `Sound` = 0, `BroadcastTextId` = 19456, `comment` = "thespia SAY_CLOUD" WHERE `CreatureID` = 17797 AND `GroupID` = 0 AND `ID` = 0;
3+
4+
DELETE FROM `creature_formations` WHERE `leaderGUID` = 3453;
5+
INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
6+
(3453,3453,0,0,3,0,0),
7+
(3453,2090,0,0,3,0,0),
8+
(3453,2093,0,0,3,0,0);

src/server/scripts/Outland/CoilfangReservoir/SteamVault/boss_hydromancer_thespia.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919

2020
#include "ScriptMgr.h"
2121
#include "ScriptedCreature.h"
22+
#include "SpellInfo.h"
2223
#include "steam_vault.h"
2324

2425
enum ThespiaTexts
2526
{
26-
SAY_SUMMON = 0,
27+
SAY_CLOUD = 0,
2728
SAY_AGGRO = 1,
2829
SAY_SLAY = 2,
2930
SAY_DEATH = 3
@@ -60,6 +61,13 @@ struct boss_hydromancer_thespia : public BossAI
6061
events.ScheduleEvent(EVENT_ENVELOPING_WINDS, 10s, 15s);
6162
}
6263

64+
void OnSpellCast(SpellInfo const* spell) override
65+
{
66+
if (spell->Id == SPELL_LIGHTNING_CLOUD)
67+
if (roll_chance_i(50))
68+
Talk(SAY_CLOUD);
69+
}
70+
6371
void KilledUnit(Unit* who) override
6472
{
6573
if (who->GetTypeId() == TYPEID_PLAYER)

0 commit comments

Comments
 (0)