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:
1 parent
ce712adda2
commit
f8a4312701
11 files changed
+34
-7
No files matched your search
@@ -101,6 +101,7 @@ public:
|
||||
|
||||
class spell_rog_prey_on_the_weak_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_rog_prey_on_the_weak_AuraScript)
|
||||
bool Validate(SpellEntry const * /*spellEntry*/)
|
||||
{
|
||||
if (!sSpellStore.LookupEntry(ROGUE_SPELL_PREY_ON_THE_WEAK))
|
||||
|
||||
Reference in new issue
Block a user