fix(Scripts/HoS) Various issues with Krystallus (#23414)

Co-authored-by: John Doe <john.doe@gmail.com>
Co-authored-by: blinkysc <your-github-email@example.com>
This commit is contained in:
blinkysc
2025-11-01 15:37:38 -05:00
committed by GitHub
parent 40befde849
commit b1160e9785
2 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
-- Stomp
DELETE FROM `spelldifficulty_dbc` WHERE `ID` = 50868;
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`, `DifficultySpellID_3`, `DifficultySpellID_4`) VALUES (50868, 50868, 59744, 0, 0);
-- Ground Spike : Heroic only
DELETE FROM `spelldifficulty_dbc` WHERE `ID` = 59750;
INSERT INTO `spelldifficulty_dbc` (`ID`, `DifficultySpellID_1`, `DifficultySpellID_2`, `DifficultySpellID_3`, `DifficultySpellID_4`) VALUES (59750, 59750, 59750, 0, 0);

View File

@@ -120,15 +120,13 @@ public:
{ {
case EVENT_BOULDER: case EVENT_BOULDER:
{ {
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 50.0f, true, 0)) DoCastRandomTarget(SPELL_BOULDER_TOSS, 0, 50.0f);
me->CastSpell(target, SPELL_BOULDER_TOSS, false);
events.Repeat(5s, 7s); events.Repeat(5s, 7s);
break; break;
} }
case EVENT_GROUND_SPIKE: case EVENT_GROUND_SPIKE:
{ {
me->CastSpell(me->GetVictim(), SPELL_GROUND_SPIKE, false); // current enemy target DoCastRandomTarget(SPELL_GROUND_SPIKE, 0, 50.0f);
events.Repeat(8s, 11s); events.Repeat(8s, 11s);
break; break;
} }
@@ -142,6 +140,8 @@ public:
{ {
events.Repeat(10s, 13s); events.Repeat(10s, 13s);
me->CastSpell(me->GetVictim(), SPELL_GROUND_SLAM, true); me->CastSpell(me->GetVictim(), SPELL_GROUND_SLAM, true);
me->SetReactState(REACT_PASSIVE);
me->AttackStop();
events.DelayEvents(10s); events.DelayEvents(10s);
events.RescheduleEvent(EVENT_SHATTER, 8s); events.RescheduleEvent(EVENT_SHATTER, 8s);
break; break;
@@ -151,6 +151,7 @@ public:
me->CastSpell((Unit*)nullptr, SPELL_SHATTER, false); me->CastSpell((Unit*)nullptr, SPELL_SHATTER, false);
Talk(SAY_SHATTER); Talk(SAY_SHATTER);
events.RescheduleEvent(EVENT_REMOVE_STONED, 1500ms); events.RescheduleEvent(EVENT_REMOVE_STONED, 1500ms);
me->SetReactState(REACT_AGGRESSIVE);
break; break;
} }
case EVENT_REMOVE_STONED: case EVENT_REMOVE_STONED: