Skip to content

Commit

Permalink
Scripts/Serpentshrine Cavern: Removed Spout hack and use correct spel…
Browse files Browse the repository at this point in the history
…l ids
  • Loading branch information
Shauren committed Feb 28, 2024
1 parent 59f9241 commit 792a4d6
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ EndScriptData */
enum Spells
{
SPELL_SPOUT = 37433,
SPELL_SPOUT_ANIM = 42835,
SPELL_SPOUT_BREATH = 37431,
SPELL_KNOCKBACK = 19813,
SPELL_GEYSER = 37478,
Expand Down Expand Up @@ -227,6 +226,7 @@ struct boss_the_lurker_below : public BossAI
{
Talk(EMOTE_SPOUT);
me->SetReactState(REACT_PASSIVE);
DoCast(me, SPELL_SPOUT_BREATH, true);
me->GetMotionMaster()->MoveRotate(0, urand(0, 1) ? ROTATE_DIRECTION_LEFT : ROTATE_DIRECTION_RIGHT, 20s, float(M_PI) / 7.0f);
SpoutTimer = 45000;
WhirlTimer = 20000; // whirl directly after spout
Expand Down Expand Up @@ -264,16 +264,10 @@ struct boss_the_lurker_below : public BossAI

if (RotTimer)
{
instance->instance->DoOnPlayers([&](Player* player)
{
if (player->IsAlive() && me->HasInArc(diff/20000.f*float(M_PI)*2.f, player) && me->IsWithinDist(player, SPOUT_DIST) && !player->IsInWater())
DoCast(player, SPELL_SPOUT, true); // only knock back players in arc, in 100yards, not in water
});

if (SpoutAnimTimer <= diff)
{
DoCast(me, SPELL_SPOUT_ANIM, true);
SpoutAnimTimer = 1000;
DoCast(me, SPELL_SPOUT, true);
SpoutAnimTimer = 200;
} else SpoutAnimTimer -= diff;

if (RotTimer <= diff)
Expand Down

0 comments on commit 792a4d6

Please sign in to comment.