Scripts/Eye of Eternity: Provide players with drakes when entering instance after Malygos' demise

This commit is contained in:
Nyeriah
2015-05-05 02:04:04 -03:00
parent d74640aa7f
commit 2d349da2ac
3 changed files with 8 additions and 2 deletions

View File

@@ -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,

View File

@@ -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

View File

@@ -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))