diff options
| author | Shauren <shauren.trinity@gmail.com> | 2020-01-14 23:53:08 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-12-20 21:40:47 +0100 |
| commit | 5d02739b989a66e1d4326035e53ad889be3eeab6 (patch) | |
| tree | 0d46290f3714840f23b31ca0c79fadefb64919fb /src/server/scripts/Kalimdor | |
| parent | 45585b53053b215a4ab225b8c803f6fc6616eb74 (diff) | |
Scripts: Fix rbac permission for skipping default boss sequencing check
(cherry picked from commit e660c8bc19198d9e2e912c5243498469f75b0ee6)
Diffstat (limited to 'src/server/scripts/Kalimdor')
24 files changed, 44 insertions, 55 deletions
diff --git a/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_aku_mai.cpp b/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_aku_mai.cpp index 7ee8976c977..3e0020feca8 100644 --- a/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_aku_mai.cpp +++ b/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_aku_mai.cpp @@ -54,9 +54,9 @@ public: _Reset(); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_POISON_CLOUD, 5s, 9s); } diff --git a/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_gelihast.cpp b/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_gelihast.cpp index fd25f1743f3..f3a5f80aec1 100644 --- a/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_gelihast.cpp +++ b/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_gelihast.cpp @@ -38,9 +38,9 @@ public: { boss_gelihastAI(Creature* creature) : BossAI(creature, DATA_GELIHAST) { } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_THROW_NET, 2s, 4s); } diff --git a/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_kelris.cpp b/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_kelris.cpp index bc371add693..225ea2d8121 100644 --- a/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_kelris.cpp +++ b/src/server/scripts/Kalimdor/BlackfathomDeeps/boss_kelris.cpp @@ -47,9 +47,9 @@ public: { boss_kelrisAI(Creature* creature) : BossAI(creature, DATA_KELRIS) { } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); Talk(SAY_AGGRO); events.ScheduleEvent(EVENT_MIND_BLAST, 2s, 5s); events.ScheduleEvent(EVENT_SLEEP, 9s, 12s); diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp index 76f070187c6..83ca39ed52c 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_archimonde.cpp @@ -298,10 +298,10 @@ public: me->RemoveAllAuras(); // Reset Soul Charge auras. } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { Talk(SAY_AGGRO); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_FEAR, 42s); events.ScheduleEvent(EVENT_AIR_BURST, 30s); events.ScheduleEvent(EVENT_GRIP_OF_THE_LEGION, 5s, 25s); diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_chrono_lord_epoch.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_chrono_lord_epoch.cpp index 241d05cd6df..1fb6a1350d5 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_chrono_lord_epoch.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_chrono_lord_epoch.cpp @@ -64,9 +64,9 @@ class boss_epoch : public CreatureScript me->RemoveLootMode(LOOT_MODE_DEFAULT); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); _stepTargetIndex = 0; _stepTargets.clear(); diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_infinite_corruptor.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_infinite_corruptor.cpp index b797b3e9967..3286e02d707 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_infinite_corruptor.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_infinite_corruptor.cpp @@ -75,10 +75,10 @@ class boss_infinite_corruptor : public CreatureScript target->CastSpell(target, SPELL_CORRUPTION_OF_TIME_TARGET, true); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { Talk(SAY_AGGRO); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_CORRUPTING_BLIGHT, 7s); events.ScheduleEvent(EVENT_VOID_STRIKE, 5s); } diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_meathook.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_meathook.cpp index 2696d0d3fec..e30cc48d8b2 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_meathook.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_meathook.cpp @@ -59,10 +59,10 @@ class boss_meathook : public CreatureScript me->RemoveLootMode(LOOT_MODE_DEFAULT); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { Talk(SAY_AGGRO); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_CHAIN, Seconds(7), Seconds(11)); events.ScheduleEvent(EVENT_DISEASE, Seconds(2)); events.ScheduleEvent(EVENT_FRENZY, Seconds(13), Seconds(17)); diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_salramm_the_fleshcrafter.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_salramm_the_fleshcrafter.cpp index b5c5b4a3d4b..963fdc4749c 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_salramm_the_fleshcrafter.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/boss_salramm_the_fleshcrafter.cpp @@ -71,10 +71,10 @@ class boss_salramm : public CreatureScript me->RemoveLootMode(LOOT_MODE_DEFAULT); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { Talk(SAY_AGGRO); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_SUMMON_GHOULS, randtime(Seconds(19),Seconds(24))); events.ScheduleEvent(EVENT_SHADOW_BOLT, Seconds(2)); diff --git a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp index 2d722d2a59b..6cc23aa2708 100644 --- a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp +++ b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp @@ -158,11 +158,11 @@ public: } } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { instance->SendEncounterUnit(ENCOUNTER_FRAME_ENGAGE, me, 1); Talk(ANRAPHET_SAY_AGGRO); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); } void JustDied(Unit* /*killer*/) override diff --git a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp index 6897ac4e818..d8f3db3d467 100644 --- a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp +++ b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp @@ -177,11 +177,11 @@ public: } } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { instance->SendEncounterUnit(ENCOUNTER_FRAME_ENGAGE, me, 1); Talk(SAY_AGGRO); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); } void JustDied(Unit* /*killer*/) override diff --git a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp index 370b33af1a9..ccb1077f5df 100644 --- a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp +++ b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp @@ -177,11 +177,11 @@ public: } } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { instance->SendEncounterUnit(ENCOUNTER_FRAME_ENGAGE, me, 1); Talk(SAY_AGGRO); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); } void JustDied(Unit* /*killer*/) override diff --git a/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp b/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp index 4ebc02c6c7d..073dfc27886 100644 --- a/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp +++ b/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp @@ -160,9 +160,9 @@ public: instance->DoStopCriteriaTimer(CriteriaStartEvent::SendEvent, ACHIEV_TIMED_START_EVENT); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); Talk(SAY_AGGRO); events.ScheduleEvent(EVENT_FLAME_BREATH, 10s, 20s); events.ScheduleEvent(EVENT_TAIL_SWEEP, 15s, 20s); diff --git a/src/server/scripts/Kalimdor/RazorfenDowns/boss_amnennar_the_coldbringer.cpp b/src/server/scripts/Kalimdor/RazorfenDowns/boss_amnennar_the_coldbringer.cpp index ecf5ee6cbe5..852dbe9d9d8 100644 --- a/src/server/scripts/Kalimdor/RazorfenDowns/boss_amnennar_the_coldbringer.cpp +++ b/src/server/scripts/Kalimdor/RazorfenDowns/boss_amnennar_the_coldbringer.cpp @@ -68,9 +68,9 @@ public: Initialize(); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_AMNENNARSWRATH, 8s); events.ScheduleEvent(EVENT_FROSTBOLT, 1s); events.ScheduleEvent(EVENT_FROST_NOVA, 10s, 15s); diff --git a/src/server/scripts/Kalimdor/RazorfenDowns/boss_glutton.cpp b/src/server/scripts/Kalimdor/RazorfenDowns/boss_glutton.cpp index c2aa923875b..05ae8bc3a04 100644 --- a/src/server/scripts/Kalimdor/RazorfenDowns/boss_glutton.cpp +++ b/src/server/scripts/Kalimdor/RazorfenDowns/boss_glutton.cpp @@ -53,9 +53,9 @@ public: hp15 = false; } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); Talk(SAY_AGGRO); } diff --git a/src/server/scripts/Kalimdor/RazorfenDowns/boss_mordresh_fire_eye.cpp b/src/server/scripts/Kalimdor/RazorfenDowns/boss_mordresh_fire_eye.cpp index 25650b9441b..d81bb49a69c 100644 --- a/src/server/scripts/Kalimdor/RazorfenDowns/boss_mordresh_fire_eye.cpp +++ b/src/server/scripts/Kalimdor/RazorfenDowns/boss_mordresh_fire_eye.cpp @@ -58,9 +58,9 @@ public: events.ScheduleEvent(EVENT_OOC_1, 10000); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.Reset(); Talk(SAY_AGGRO); events.ScheduleEvent(EVENT_FIREBALL, 100ms); diff --git a/src/server/scripts/Kalimdor/RazorfenDowns/boss_tuten_kash.cpp b/src/server/scripts/Kalimdor/RazorfenDowns/boss_tuten_kash.cpp index 61e05d16586..0d9c5025a74 100644 --- a/src/server/scripts/Kalimdor/RazorfenDowns/boss_tuten_kash.cpp +++ b/src/server/scripts/Kalimdor/RazorfenDowns/boss_tuten_kash.cpp @@ -51,9 +51,9 @@ public: DoCast(me, SPELL_VIRULENT_POISON); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.ScheduleEvent(EVENT_WEB_SPRAY, 3s, 5s); events.ScheduleEvent(EVENT_CURSE_OF_TUTENKASH, 9s, 14s); } diff --git a/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_buru.cpp b/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_buru.cpp index 65320cfa5f1..75c4554f613 100644 --- a/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_buru.cpp +++ b/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_buru.cpp @@ -86,7 +86,7 @@ class boss_buru : public CreatureScript void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); Talk(EMOTE_TARGET, who); DoCast(me, SPELL_THORNS); diff --git a/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp b/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp index 4aab787d26b..fc982231278 100644 --- a/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp +++ b/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_ossirian.cpp @@ -138,9 +138,9 @@ class boss_ossirian : public CreatureScript Trigger->CastSpell(Trigger, SpellWeakness[urand(0, 4)], false); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.Reset(); events.ScheduleEvent(EVENT_SILENCE, 30s); events.ScheduleEvent(EVENT_CYCLONE, 20s); diff --git a/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_rajaxx.cpp b/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_rajaxx.cpp index cefed7c8474..5dd859869bd 100644 --- a/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_rajaxx.cpp +++ b/src/server/scripts/Kalimdor/RuinsOfAhnQiraj/boss_rajaxx.cpp @@ -81,17 +81,6 @@ class boss_rajaxx : public CreatureScript events.ScheduleEvent(EVENT_THUNDERCRASH, 12s); } - void JustDied(Unit* /*killer*/) override - { - //SAY_DEATH - _JustDied(); - } - - void JustEngagedWith(Unit* /*victim*/) override - { - _JustEngagedWith(); - } - void UpdateAI(uint32 diff) override { if (!UpdateVictim()) diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_ouro.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_ouro.cpp index 650e564a2bc..a710289af94 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_ouro.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_ouro.cpp @@ -81,10 +81,10 @@ public: _Reset(); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { DoCastVictim(SPELL_BIRTH); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); } void UpdateAI(uint32 diff) override diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp index 98248c95ce8..0362f85f572 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_sartura.cpp @@ -93,10 +93,10 @@ public: _Reset(); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { Talk(SAY_AGGRO); - _JustEngagedWith(); + BossAI::JustEngagedWith(who); } void JustDied(Unit* /*killer*/) override diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp index 82884269013..046d534f453 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp @@ -135,9 +135,9 @@ class boss_skeram : public CreatureScript me->DespawnOrUnsummon(); } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.Reset(); events.ScheduleEvent(EVENT_ARCANE_EXPLOSION, 6s, 12s); diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp index 3963d9c8664..155a1e22edd 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp @@ -148,7 +148,7 @@ struct boss_twinemperorsAI : public BossAI void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); Creature* pOtherBoss = GetOtherBoss(); if (pOtherBoss) { diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_viscidus.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_viscidus.cpp index 4b1afc100c4..ac0f5471c22 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_viscidus.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_viscidus.cpp @@ -180,9 +180,9 @@ class boss_viscidus : public CreatureScript } } - void JustEngagedWith(Unit* /*who*/) override + void JustEngagedWith(Unit* who) override { - _JustEngagedWith(); + BossAI::JustEngagedWith(who); events.Reset(); InitSpells(); } |
