QAston
1760e42e2c
Core/ScriptSystem: Add compile time type check of function assigned to hooks - prevents incorrect function calls. Since this rev you have to put PrepareSpellScript(<yourscriptclassnamehere>) at the beginning of every spell script. Yes, i know it's unhandy, but unfortunately C++ preprocessor is very limited, so you have to do that extra work each time you write a script:(.
...
--HG--
branch : trunk
2010-10-08 21:33:44 +02:00
click
f0c4241ea4
Remove the accidental additions of CRLF-crap from the header updates
...
--HG--
branch : trunk
2010-10-07 15:35:36 +02:00
click
a67d7c9afd
Copyright header updates - part 3... (and some whitespace cleanups)
...
--HG--
branch : trunk
2010-10-07 14:00:52 +02:00
click
df66aee929
Yet more copyright header updates
...
--HG--
branch : trunk
2010-10-07 13:38:35 +02:00
QAston
cac4cfda42
Core/ScriptSystem: Add missing script call preparation for SpellScripts - fixes issues with core false alarms after recent changes
...
--HG--
branch : trunk
2010-10-05 08:17:10 +02:00
QAston
abe769a310
Core/ScriptSystem: Extend SpellScript API by spell focus targets accessors.
...
--HG--
branch : trunk
2010-10-04 20:32:10 +02:00
QAston
69057dcaeb
Core/ScriptSystem/SpellScripts: Runtime checks for functions working only during spell hit phase
...
--HG--
branch : trunk
2010-10-04 19:12:20 +02:00
QAston
caaa77deb2
Core/ScriptSystem:
...
Add basic code for runtime checks of function calls in AuraScripts
Make AuraScript::PreventDefaultAction() do not take parameters and add description for the function
Remove PreventDefaultEffect() from aura script, use PreventDefaultAction() instead
Unload aura scripts memory on aura delete
--HG--
branch : trunk
2010-10-04 17:44:49 +02:00
click
bf664b7a44
Cleanup/Core: Remove whitespace and tabs
...
--HG--
branch : trunk
2010-09-12 01:40:27 +02:00
click
e5337169c8
Core: Fix non-PCH builds - defining SpellScripts before we have the auraApplications defined will not work
...
--HG--
branch : trunk
2010-08-24 16:07:52 +02:00
QAston
07a3a1254b
*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
2010-08-24 00:10:49 +02:00
azazel
b0086ce4fc
Fix logic in SpellScript (thanks Toni.Shocker)
...
--HG--
branch : trunk
2010-08-22 13:04:10 +06:00
QAston
30bcf8c659
Scripts/Spell: extend SpellScript class: add target aura accessors and functions which prevent various effects of the spell from being executed. Check out SpellScript.h for details
...
--HG--
branch : trunk
2010-08-19 14:31:31 +02:00
azazel
66fcd52106
Add more methods to SpellScript.
...
Spells cleanup: move spells from the core to scripts.
* Shaman spells: 39610 Mana Tide Totem, 1535 Fire Nova (and ranks)
* Death Knight spells: 55090 Scourge Strike (and ranks), 49158 Corpse Explosion (and ranks), 50524 Runic Power Feed
* Druid spells: 54846 Glyph of Starfire
* Warlock spells: 6201 Create Healthstone (and ranks), 47422 Everlasting Affliction, 47193 Demonic Empowerment, 63521 Guarded by The Light
* Hunter spells: 37506 Scatter Shot, 53412 Invigoration, 53209 Chimera Shot
* Quest spells: 45449 Arcane Prisoner Rescue (quest 11587), 46023 The Ultrasonic Screwdriver (quest 11730). Closes issue #3068
Clean old code for hunter's Heart of the Phoenix, move script effect of hunter's Master's Call to corresponding script.
Move DK's Hungering Cold to spell_scripts table (needs DB support)
--HG--
branch : trunk
2010-08-18 00:20:23 +06:00
click
1f80c7b3c0
Sourcefile sleanups -> tabs to spaces, remove whitespace - also update the cleanupscripts very slightly
...
--HG--
branch : trunk
2010-08-08 19:45:53 +02:00
click
2b9275424e
Fix non-PCH build
...
--HG--
branch : trunk
2010-07-27 04:31:27 +02:00
QAston
fce1f5b014
*Extend API of SpellScript by Dest and Damage/Heal setters and getters.
...
*Make some SpellScript function names shorter.
--HG--
branch : trunk
2010-07-25 16:23:57 +02:00
QAston
2352fc7cdf
*Add base scripting interfce for spells - thanks to Brian for help in making it compile with GCC.
...
*Add hook for handling spell effects in new scripting system.
--HG--
branch : trunk
2010-07-24 22:41:42 +02:00