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:
@@ -684,6 +684,7 @@ public:
|
||||
class spell_item_shadowmourne_AuraScript : public AuraScript
|
||||
{
|
||||
public:
|
||||
PrepareAuraScript(spell_item_shadowmourne_AuraScript)
|
||||
spell_item_shadowmourne_AuraScript() : AuraScript() { }
|
||||
|
||||
bool Validate(SpellEntry const* /*spellEntry*/)
|
||||
|
||||
Reference in New Issue
Block a user