mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
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:
@@ -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);
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user