mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Scripts/BlastedLands: Implement intro quest for Assault on the Dark Portal (#29242)
This commit is contained in:
@@ -60,7 +60,31 @@ class spell_razelikh_teleport_group : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## Quests 36881 and 34398: Warlords of Draenor: The Dark Portal
|
||||
######*/
|
||||
|
||||
enum TeleportToTanaan
|
||||
{
|
||||
SPELL_TELEPORT_TO_TANAAN = 167771,
|
||||
|
||||
MOVIE_INTO_THE_PORTAL = 185
|
||||
};
|
||||
|
||||
class player_teleport_to_tanaan : public PlayerScript
|
||||
{
|
||||
public:
|
||||
player_teleport_to_tanaan() : PlayerScript("player_teleport_to_tanaan") { }
|
||||
|
||||
void OnMovieComplete(Player* player, uint32 movieId) override
|
||||
{
|
||||
if (movieId == MOVIE_INTO_THE_PORTAL)
|
||||
player->CastSpell(player, SPELL_TELEPORT_TO_TANAAN, true);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_blasted_lands()
|
||||
{
|
||||
RegisterSpellScript(spell_razelikh_teleport_group);
|
||||
new player_teleport_to_tanaan();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user