mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Scripts/Eye of Eternity: Provide players with drakes when entering instance after Malygos' demise
This commit is contained in:
@@ -128,7 +128,6 @@ enum Spells
|
||||
SPELL_ARCANE_BARRAGE_DAMAGE = 63934, // the actual damage - cast by affected player by script spell
|
||||
|
||||
// Transition /II-III/
|
||||
SPELL_SUMMOM_RED_DRAGON_BUDYY = 56070,
|
||||
SPELL_RIDE_RED_DRAGON_BUDDY = 56071,
|
||||
SPELL_SUMMON_RED_DRAGON_BUDDY_F_CAST = 58846, // After implicitly hit player targets they will force cast 56070 on self
|
||||
SPELL_DESTROY_PLATFORM_CHANNEL = 58842,
|
||||
|
||||
@@ -80,7 +80,8 @@ enum InstanceSpells
|
||||
SPELL_VORTEX_5 = 56263, // damage | used to enter to the vehicle
|
||||
SPELL_PORTAL_OPENED = 61236,
|
||||
SPELL_RIDE_RED_DRAGON_TRIGGERED = 56072,
|
||||
SPELL_IRIS_OPENED = 61012 // visual when starting encounter
|
||||
SPELL_IRIS_OPENED = 61012, // visual when starting encounter
|
||||
SPELL_SUMMOM_RED_DRAGON_BUDDY = 56070
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -39,6 +39,12 @@ public:
|
||||
SetBossNumber(MAX_ENCOUNTER);
|
||||
}
|
||||
|
||||
void OnPlayerEnter(Player* player) override
|
||||
{
|
||||
if (GetBossState(DATA_MALYGOS_EVENT) == DONE)
|
||||
player->CastSpell(player, SPELL_SUMMOM_RED_DRAGON_BUDDY, true);
|
||||
}
|
||||
|
||||
bool SetBossState(uint32 type, EncounterState state) override
|
||||
{
|
||||
if (!InstanceScript::SetBossState(type, state))
|
||||
|
||||
Reference in New Issue
Block a user