Commit Graph

32 Commits

Author SHA1 Message Date
click
158966dc79 Core: Codestyle cleanup 2011-06-11 22:35:29 +02:00
QAston
42a20f14ef Core/Auras: Use existing aura object on aura reapply/stack increase instead of creating a new one.
You can hook on reapply/stack event by checking for AURA_EFFECT_HANDLE_REAPPLY aura handler mode, AURA_EFFECT_HANDLE_REAL is now not triggered on aura refresh/stack.
2011-05-29 13:18:47 +02:00
QAston
79aa5233d7 Scripts/AuraScripts: Use AfterEffectApply and AfterEffectRemove hooks in scripts, where they fit better than On* hooks. 2011-05-25 19:12:41 +02:00
click
b2655b198c Scripts/Spell: Remove redundant type-check in Ashbringer script (thanks machi/kaelima) 2011-05-14 18:42:33 +02:00
click
a40e33efe7 Fix a silly typo done in 0902bb0f2b 2011-05-13 16:28:41 +02:00
click
0902bb0f2b Scripts/Spells: Add triggered spell-handling for Corrupted Ashbringer (item 22691, no longer available through normal means) - original idea by Heisenberg 2011-05-13 15:51:25 +02:00
leak
1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
Shauren
2d752b974a Fixed typo 2011-04-27 20:13:28 +02:00
Nay
b0585f5e0d Scripts/Items: Fixed Vanquished Clutches of Yogg-Saron 2011-04-27 19:13:28 +02:00
Shauren
e5347a3bda Core: Fixed warnings:
C4100: 'variable' : unreferenced formal parameter
C4701: potentially uninitialized local variable
C4389: '!=' : signed/unsigned mismatch
C4245: 'argument' : conversion from 'X' to 'Y', signed/unsigned mismatch
2011-03-08 16:42:00 +01:00
kaelima
8340e5e1dc Scripts/Spells: Corrected naming typo from recent Map of the Geyser Fields fix. 2011-03-08 09:41:23 +01:00
ZxBiohazardZx
95a7b253a6 Scripts/Spells: Modified range for targeting script for Map of the Geyser Fields by Shauren 2011-03-08 00:03:04 +01:00
Shauren
e4c0a80336 Scripts/Spells: Added targeting script for Map of the Geyser Fields 2011-03-07 23:05:44 +01:00
Shauren
36f848a4c2 Scripts/Icecrown Citadel: Only one Mutated Abomination can exist during Professor Putricide encounter
Scripts/Spells: Added blizzlike error messages for certain spells
Scripts/Items: Removed obsolete scripts
2011-03-04 23:53:11 +01:00
Shauren
7120f1eff8 Core/Spells:
* Implemented on CheckCast spell script hook
* Added possibility to send SPELL_FAILED_CUSTOM_ERROR and added enum with all possible options for it

Scripts/Spells:
* Added example script for CheckCast hook with SPELL_FAILED_CUSTOM_ERROR (profession research and Book of Glyph Mastery)
2011-03-04 21:19:43 +01:00
Manuel Carrasco
30916fd9ff Scrips/Spell: Implemented script for spell 26678.
Signed-off-by: Manuel Carrasco <manue.l@live.com.ar>
2011-02-12 12:04:02 -03:00
leak
137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Machiavelli
957c69de83 Update copyright note for 2011.
Happy new year.
2011-01-01 15:01:13 +01:00
QAston
ef968f4b15 Core/Unit: Big cleanup in Unit::CalcAbsorbResist
Core/AuraScript:
	Fix compile time check for AuraScript functions
	Remove AuraApplication from hook functions parameter list, use GetTarget() and GetTargetApplication() instead
	Add OnEffectAbsorb hook
Scripts: move handlers of Spell Deflection, Savage Defense, Primal Tenacity, Nerves of Steel, Astral shift from core to scripts.

--HG--
branch : trunk
2010-12-27 20:14:54 +01:00
Shauren
99ff32be28 Scripts/Spells: Added support for Red Rider Air Rifle (item 46725)
--HG--
branch : trunk
2010-12-25 15:26:16 +01:00
QAston
59c1a238f5 Scripts/AuraScript: Make AuraApplication in OnEffectPeriodic never be NULL.
Scripts: remove some unnecessary NULL checks from scripts.

--HG--
branch : trunk
2010-12-05 21:38:52 +01:00
QAston
f8a4312701 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
2010-10-08 22:33:21 +02:00
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
a67d7c9afd Copyright header updates - part 3... (and some whitespace cleanups)
--HG--
branch : trunk
2010-10-07 14:00:52 +02:00
Shocker
2843be87a0 Core/Spells: Fix Flask of the North, it should give specific buff depending on class
--HG--
branch : trunk
2010-10-06 21:47:25 +03:00
linencloth
20b124ab03 Core: Fix compile
--HG--
branch : trunk
2010-09-29 23:08:46 +02:00
Shauren
67a531c8c7 Core/Scripts/Items: Removed unused variable from shadowmourne script (forgot to delete temp dev stuff)
--HG--
branch : trunk
2010-09-29 22:46:13 +02:00
Shauren
d2117fd4ee Core/Spells: Fixed Shadowmourne proc
Scripts/Quests: Fixed quest 24547 (A Feast of Souls)

Closes issue #2331.

--HG--
branch : trunk
2010-09-28 17:35:59 +02:00
Trazom62
0e9d0f6bcb Core/Script/Item: fix urand range in Six Demon Bag.
--HG--
branch : trunk
2010-09-07 20:47:48 +02:00
Spp
cdef980af4 Core: Fix some warnings
--HG--
branch : trunk
2010-09-06 15:23:08 +02:00
azazel
7884fd927a Spell Scripts:
* moved some generic spell dummy effects to scripts
* implemented two spell scripts for quests: 8913 Sacred Cleansing (Quest 55), 44936 Quest - Fel Siphon Dummy (Quest 11515). Closes issue #3040
* did some cleanup in spell scripts and added more comments

--HG--
branch : trunk
2010-09-04 02:33:57 +06:00
azazel
d952c90754 Spell Scripts:
* add new file spell_item.cpp for spells used by items (but not by quests)
* move some dummy effects of generic spells to scripts
* implement spell for quest 12937 Relief for the Fallen. Closes issue #3070

--HG--
branch : trunk
2010-08-29 22:40:23 +06:00