*Add AuraScript class for scripting aura objects - scripts are registered same way as SpellScripts, bound to SpellScriptNames table. For more details see example_spell.cpp and SpellScript.h

*Rename SpellHandlerScript to SpellScriptLoader, EffectHandlerFn to SpellEffectFn, HitHandlerFn to SpellHitFn, SpellScript::EffectHandlers to SpellScript::OnEffect, these changes were neccesary to prevent namespace collisions, happily you can solve these by simple find and replace
*Make spells 66244 and 5581 example scripts.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2010-08-24 00:10:49 +02:00
1 parent e581feb551
commit 07a3a1254b
28 files changed
+1075 -291

No files matched your search

+9 -9
View File
@@ -37,10 +37,10 @@ enum WarlockSpells
};
// 47193 Demonic Empowerment
class spell_warl_demonic_empowerment : public SpellHandlerScript
class spell_warl_demonic_empowerment : public SpellScriptLoader
{
public:
spell_warl_demonic_empowerment() : SpellHandlerScript("spell_warl_demonic_empowerment") { }
spell_warl_demonic_empowerment() : SpellScriptLoader("spell_warl_demonic_empowerment") { }
class spell_warl_demonic_empowerment_SpellScript : public SpellScript
{
@@ -95,7 +95,7 @@ public:
void Register()
{
EffectHandlers += EffectHandlerFn(spell_warl_demonic_empowerment_SpellScript::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
OnEffect += SpellEffectFn(spell_warl_demonic_empowerment_SpellScript::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
@@ -106,10 +106,10 @@ public:
};
// 47422 Everlasting Affliction
class spell_warl_everlasting_affliction : public SpellHandlerScript
class spell_warl_everlasting_affliction : public SpellScriptLoader
{
public:
spell_warl_everlasting_affliction() : SpellHandlerScript("spell_warl_everlasting_affliction") { }
spell_warl_everlasting_affliction() : SpellScriptLoader("spell_warl_everlasting_affliction") { }
class spell_warl_everlasting_affliction_SpellScript : public SpellScript
{
@@ -123,7 +123,7 @@ public:
void Register()
{
EffectHandlers += EffectHandlerFn(spell_warl_everlasting_affliction_SpellScript::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
OnEffect += SpellEffectFn(spell_warl_everlasting_affliction_SpellScript::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
@@ -134,10 +134,10 @@ public:
};
// 6201 Create Healthstone (and ranks)
class spell_warl_create_healthstone : public SpellHandlerScript
class spell_warl_create_healthstone : public SpellScriptLoader
{
public:
spell_warl_create_healthstone() : SpellHandlerScript("spell_warl_create_healthstone") { }
spell_warl_create_healthstone() : SpellScriptLoader("spell_warl_create_healthstone") { }
class spell_warl_create_healthstone_SpellScript : public SpellScript
{
@@ -177,7 +177,7 @@ public:
void Register()
{
EffectHandlers += EffectHandlerFn(spell_warl_create_healthstone_SpellScript::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
OnEffect += SpellEffectFn(spell_warl_create_healthstone_SpellScript::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};