Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BlackMetalz/94fd5c7f36fca5ae1d9fbdab598dad42 to your computer and use it in GitHub Desktop.
Save BlackMetalz/94fd5c7f36fca5ae1d9fbdab598dad42 to your computer and use it in GitHub Desktop.
/// 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