Scripts/BlastedLands: Implement intro quest for Assault on the Dark Portal (#29242)

This commit is contained in:
Aqua Deus
2023-08-24 11:00:06 +02:00
committed by GitHub
parent b10b97b35b
commit fa836ee433
2 changed files with 97 additions and 0 deletions

View File

@@ -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();
}