mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/ScriptSystem: Add compile time type check of function assigned to hooks -
prevents incorrect function calls. Since this rev you have to put PrepareAuraScript(<yourscriptclassnamehere>) at the beginning of every aura script. --HG-- branch : trunk
This commit is contained in:
@@ -135,6 +135,7 @@ class spell_ex_66244 : public SpellScriptLoader
|
||||
|
||||
class spell_ex_66244AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_ex_66244AuraScript)
|
||||
enum Spells
|
||||
{
|
||||
SPELL_TRIGGERED = 18282
|
||||
@@ -297,6 +298,7 @@ class spell_ex : public SpellScriptLoader
|
||||
|
||||
class spell_ex_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_ex)
|
||||
//bool Validate(SpellEntry const * spellEntry){return true;}
|
||||
//bool Load(){return true;}
|
||||
//void Unload(){}
|
||||
|
||||
Reference in New Issue
Block a user