Skip to content

Commit f2662cc

Browse files
authored
Scripts/AuchenaiCrypts: Small corrections to scripts (#30959)
1 parent 8d6e6c3 commit f2662cc

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "SpellInfo.h"
2424
#include "SpellScript.h"
2525

26-
enum Texts
26+
enum MaladaarTexts
2727
{
2828
SAY_ROAR = 0,
2929
SAY_SOUL_CLEAVE = 1,
@@ -33,7 +33,7 @@ enum Texts
3333
SAY_DEATH = 5
3434
};
3535

36-
enum Spells
36+
enum MaladaarSpells
3737
{
3838
SPELL_SOUL_SCREAM = 32421,
3939
SPELL_RIBBON_OF_SOULS = 32422,
@@ -57,15 +57,15 @@ enum Spells
5757
SPELL_PLAGUE_STRIKE = 58839
5858
};
5959

60-
enum Events
60+
enum MaladaarEvents
6161
{
6262
EVENT_SOUL_SCREAM = 1,
6363
EVENT_RIBBON_OF_SOULS,
6464
EVENT_STOLEN_SOUL,
6565
EVENT_SUMMON_AVATAR
6666
};
6767

68-
enum Misc
68+
enum MaladaarMisc
6969
{
7070
NPC_DORE = 19412,
7171

@@ -93,6 +93,7 @@ enum Misc
9393

9494
Position const DoreSpawnPos = { -4.40722f, -387.277f, 40.6294f, 6.26573f };
9595

96+
// 18373 - Exarch Maladaar
9697
struct boss_exarch_maladaar : public BossAI
9798
{
9899
boss_exarch_maladaar(Creature* creature) : BossAI(creature, DATA_EXARCH_MALADAAR), _avatarSummoned(false) { }
@@ -123,9 +124,19 @@ struct boss_exarch_maladaar : public BossAI
123124

124125
void OnSpellCast(SpellInfo const* spell) override
125126
{
126-
if (spell->Id == SPELL_STOLEN_SOUL)
127-
if (roll_chance_i(25))
128-
Talk(SAY_SOUL_CLEAVE);
127+
switch (spell->Id)
128+
{
129+
case SPELL_STOLEN_SOUL:
130+
if (roll_chance_i(25))
131+
Talk(SAY_SOUL_CLEAVE);
132+
break;
133+
case SPELL_SOUL_SCREAM:
134+
if (roll_chance_i(25))
135+
Talk(SAY_ROAR);
136+
break;
137+
default:
138+
break;
139+
}
129140
}
130141

131142
void SpellHitTarget(WorldObject* target, SpellInfo const* spellInfo) override
@@ -164,8 +175,6 @@ struct boss_exarch_maladaar : public BossAI
164175
switch (eventId)
165176
{
166177
case EVENT_SOUL_SCREAM:
167-
if (roll_chance_i(25))
168-
Talk(SAY_ROAR);
169178
DoCastSelf(SPELL_SOUL_SCREAM);
170179
events.Repeat(RAND(15s, 20s));
171180
break;
@@ -197,6 +206,7 @@ struct boss_exarch_maladaar : public BossAI
197206
bool _avatarSummoned;
198207
};
199208

209+
// 18441 - Stolen Soul
200210
struct npc_stolen_soul : public ScriptedAI
201211
{
202212
npc_stolen_soul(Creature* creature) : ScriptedAI(creature), _summonerClass(CLASS_NONE) { }

src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_shirrak_the_dead_watcher.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
/* Old comment: "Inhibit Magic should stack slower far from the boss" - really? */
19-
2018
#include "ScriptedCreature.h"
2119
#include "ScriptMgr.h"
2220
#include "Spell.h"
@@ -129,14 +127,19 @@ struct npc_focus_fire : public ScriptedAI
129127
// Should be in this sniffed order but makes it ignore other spell casts, so disabled
130128
// DoCastSelf(SPELL_BIRTH);
131129
DoCastSelf(SPELL_FOCUS_TARGET_VISUAL);
132-
DoCastSelf(SPELL_PING_SHIRRAK);
133130

134131
_scheduler.Schedule(5s, [this](TaskContext /*task*/)
135132
{
136-
DoCastSelf(SPELL_FIERY_BLAST);
133+
DoCastSelf(SPELL_PING_SHIRRAK);
137134
});
138135
}
139136

137+
void SpellHit(WorldObject* /*caster*/, SpellInfo const* spellInfo) override
138+
{
139+
if (spellInfo->Id == SPELL_FOCUS_FIRE_DUMMY)
140+
DoCastSelf(SPELL_FIERY_BLAST);
141+
}
142+
140143
void UpdateAI(uint32 diff) override
141144
{
142145
_scheduler.Update(diff);

0 commit comments

Comments
 (0)