fix(Scripts/ZulGurub): Fixed Edge of Madness tablets. (#11959)

Based on @offl work.
Fixes #11610
This commit is contained in:
UltraNix
2022-06-10 01:30:07 +02:00
committed by GitHub
parent e951208610
commit 9dd4123ff0
2 changed files with 47 additions and 20 deletions

View File

@@ -24,7 +24,6 @@ go_sacred_fire_of_life
go_shrine_of_the_birds
go_southfury_moonstone
go_resonite_cask
go_tablet_of_madness
go_tablet_of_the_seven
go_tele_to_dalaran_crystal
go_tele_to_violet_stand
@@ -943,24 +942,6 @@ public:
}
};
/*######
## go_tablet_of_madness
######*/
class go_tablet_of_madness : public GameObjectScript
{
public:
go_tablet_of_madness() : GameObjectScript("go_tablet_of_madness") { }
bool OnGossipHello(Player* player, GameObject* /*go*/) override
{
if (player->HasSkill(SKILL_ALCHEMY) && player->GetSkillValue(SKILL_ALCHEMY) >= 300 && !player->HasSpell(24266))
player->CastSpell(player, 24267, false);
return true;
}
};
/*######
## go_tablet_of_the_seven
######*/
@@ -1975,7 +1956,6 @@ void AddSC_go_scripts()
new go_gilded_brazier();
//new go_shrine_of_the_birds();
new go_southfury_moonstone();
new go_tablet_of_madness();
new go_tablet_of_the_seven();
new go_jump_a_tron();
new go_sacred_fire_of_life();