Created
June 28, 2020 19:19
-
-
Save BlackMetalz/94fd5c7f36fca5ae1d9fbdab598dad42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// 62839 | |
class spell_quests_purifier_prayer_book_cover : public SpellScriptLoader | |
{ | |
public: | |
spell_quests_purifier_prayer_book_cover() : SpellScriptLoader("spell_quests_purifier_prayer_book_cover") { } | |
class spell_quests_purifier_prayer_book_cover_SpellScrip : public SpellScript | |
{ | |
PrepareSpellScript(spell_quests_purifier_prayer_book_cover_SpellScrip) | |
void HandleDummy() | |
{ | |
if (GetCaster() && GetCaster()->GetTypeId() == TYPEID_PLAYER) | |
{ | |
GetCaster()->ToPlayer()->AddItem(45043, 1); | |
} | |
} | |
void Register() | |
{ | |
OnCast += SpellCastFn(spell_quests_purifier_prayer_book_cover_SpellScrip::HandleDummy); | |
} | |
}; | |
SpellScript* GetSpellScript() const | |
{ | |
return new spell_quests_purifier_prayer_book_cover_SpellScrip(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment