Commit Graph

77 Commits

Author SHA1 Message Date
root
c14e7ec385 Core/Spells: Permanent Feign Death will now also make the creature set its creature state passive 2011-12-24 23:44:51 +01:00
Shauren
b4df932e71 Core/Dungeon Finder: Implemented Luck of the Draw buff 2011-12-18 22:09:03 +01:00
PKX
64e21f76bb Correction to previous commit 61866831ca
Closes #4100
2011-11-27 18:59:19 +01:00
PKX
61866831ca Core/Spells: Fix Damage Taken raid buffs
Fixes 3% reduced damage taken from Blessing of Sanctuary and Renewed Hope

Signed-off-by: PKX <pkx.icehell@gmail.com>
2011-11-26 22:53:13 +01:00
Spp
b16d2245bb Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces

Note: Only affects files with extension "cpp" and "h" under /src/server
2011-09-29 12:43:05 +02:00
QAston
a2633bf7fc Scripts: fix spell_generic_quest_update_entry script after e949ad3adb. 2011-09-27 00:12:45 +02:00
QAston
e949ad3adb Core/Spells: spell effect handling improvements
* Call spell effect handlers in 4 modes:
   - SPELL_EFFECT_HANDLE_LAUNCH - called when spell is launched (cast just finished)
   - SPELL_EFFECT_HANDLE_LAUNCH_TARGET - called when spell is launched for each target in spell target map
   - SPELL_EFFECT_HANDLE_HIT - called when spell hits its destination
   - SPELL_EFFECT_HANDLE_HIT_TARGET - called when spell hits it's target from spell target map
*Correctly implement SPELL_EFFECT_TRIGGER_SPELL, SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL_WITH_VALUE, SPELL_EFFECT_TRIGGER_MISSILE_SPELL
*Remove spell system hacks which became obsolete with this commit
Core/SpellScripts:
add OnEffectLaunch, OnEffectLaunchTarget, OnEffectHit, OnEffectHitTarget hooks for new effect handle modes and remove OnEffect hook.
A generic rule of thumb how to update your scripts (will work for nearly all cases) for spell system noobs:
if your spell script used GetHitXXXX function, you need to use OnEffectHitTarget, otherwise use
OnEffectHit
2011-09-25 13:29:50 +02:00
kiper
cdb4f60a14 Merge pull request #3040
Core/Spell: Fix spell related to reputation in Oracle and Frenzy faction
2011-09-21 10:02:30 +02:00
Spp
af05915b9e [Cosmetic] Apply codestyle "XXX * " and "XXX *" changed to "XXX* " (with some exceptions) 2011-09-15 14:12:57 +02:00
QAston
e2d8faea09 Core/Spells: move Cannibalize and Carrion Feeder cast checks to SpellScripts. 2011-08-20 00:30:38 +02:00
Machiavelli
2d3f51e6e5 Core/Spells: Fix Shaman talent Nature's Guardian and rewrite fix for fc52f08. Fixes some spells not triggering. 2011-08-07 21:19:27 +02:00
Machiavelli
156d491c27 Core/Spells: Add GetTriggeringSpell() method to SpellScript and use it to properly filter server side spell 18350's script. 2011-08-06 19:40:50 +02:00
Machiavelli
fc52f0846e Core/Spells: Fix Soul Preserver trinket 2011-08-01 23:57:16 +02:00
Spp-
fa50c0a464 Fix some warnings here and there 2011-07-27 11:00:39 +02:00
QAston
b0fe236265 Core: Use new SpellInfo class in core. Sadly, this commit is not compatibile with some of the custom code. To make your code work again you may need to change:
*SpellEntry is now SpellInfo
*GetSpellProto is now GetSpellInfo
*SpellEntry::Effect*[effIndex] is now avalible under SpellInfo.Effects[effIndex].*
*sSpellStore.LookupEntry is no longer valid, use sSpellMgr->GetSpellInfo()
*SpellFunctions from SpellMgr.h like DoSpellStuff(spellId) are now: spellInfo->DoStuff()
*SpellMgr::CalculateEffectValue and similar functions are now avalible in SpellEffectInfo class.
*GET_SPELL macro is removed, code which used it is moved to SpellMgr::LoadDbcDataCorrections
*code which affected dbc data in SpellMgr::LoadSpellCustomAttr is now moved to LoadDbcDataCorrections
2011-07-26 23:09:28 +02:00
Shauren
74e2d981ac Core/GameObject: Refactored destructible building handling, properly implemented spell effect repair 2011-07-22 21:22:05 +02:00
QAston
0dc90a2cbb Core/Spells: use spell caster as a target of spells triggered by SPELL_EFFECT_FORCE_CAST 2011-07-07 18:02:59 +02:00
click
70115f52f7 Core: Cleaning up hungarian notation - Phase3: pTarget -> target 2011-07-02 23:16:45 +02:00
click
a9c9ab0efa Core: Clean up script variables to make variables consistant/standardized, and some additional warning-removals:
+ Fix compilewarning in Unit.cpp
+ Remove/comment out unused parameters for some commandscripts/scripts (warnings)
+ Replace "plr" with "player" all over the scriptbase for consistency
2011-07-01 03:00:39 +02:00
Spp-
6fd41ae50e Scripts: Reorder file names in Commands/CMakeList file and cosmetic changes in all scripts 2011-06-30 14:24:56 +02:00
Spp-
1e95341827 Cosmetic: Remove trailing whitespaces 2011-06-30 11:30:36 +02:00
Sarjuuk
14af76672c Core/Vehicles: Fix vehicle scaling basepoint calculation for current known coefficients.
Closes #2144

Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2011-06-28 15:27:00 +02:00
kaelima
9a67aaa8b8 DB/Creature:
- Nuke the hacky column DeathState.
- Removed some hacks from Kologarn script, including some cleanup.
- Removed set deathstate command.

BIG thanks to Malcrom for replacing all creatures that had deathstate with proper dynamicflags/auras.
2011-06-27 20:22:53 +02:00
Sarjuuk
249692b54b Core/Vehicles: Remove vehicle stat scaling hack and implement it properly trough the spell system. NOTE: This does need some further research on coefficients for different vehicles.
Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
2011-06-27 14:23:58 +02:00
maanuel
5c0c2ea873 Core/Spells: Fixed spell 62218 (Launch) used by npc 34793 (Catapult) in Isle of Conquest. 2011-06-26 16:03:50 -03:00
Shocker
9c70f586e0 Core/Misc: Build fix 2011-06-24 22:41:13 +03:00
Shocker
3de42791ee Core/Spells: Partial revert of 5ddf90c5fe, use checkcast hook for disallowing spells to be casted directly
Closes #2108
2011-06-24 21:56:37 +03:00
click
713e2df3f7 Core/Spells: remove the Shroud of Death from the spell-script list as well - thanks Rasmusik for reminding me 2011-06-23 18:41:34 +02:00
click
5052e39b8c Core/Spells: Remove now deprecated spellscript for Shroud of Death 2011-06-23 18:15:13 +02:00
Shauren
92af66e0a6 Scripts/Spells: Scripted Magic Rooster mount
Closes #1704
Closes #1733
2011-06-03 22:09:55 +02:00
QAston
506fedcfea Changes missing from last commit. 2011-05-31 20:28:36 +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
Shauren
b378c146dc Scripts/Spells: Moved stack change checks for spell_gen_turkey_marker into new AfterEffectApply hook 2011-05-25 18:54:25 +02:00
Shauren
c3e1f41bc2 Scripts/Spells: Use more appropriate hook for Lifeblood calculations 2011-05-19 13:21:12 +02:00
Shocker
ea9a83407f Core/Spells: Fix Lifeblood scaling with health
Based on Kapoeira's patch

Closes #817 and pull request #13
2011-05-19 12:32:29 +03:00
Shauren
49aeb3ae5a Scripts/Spells: Fixed Friend or Fowl achievement 2011-05-07 11:40:15 +02:00
leak
1003f30448 Add spaces after commas 2011-04-29 20:47:02 +02:00
Shauren
8898db8b27 Core: Corrected NULL usage, it should only be used with pointers, not integers 2011-04-23 15:53:48 +02:00
Shauren
18c9038ca7 Scripts/Spells: Fixed achievements The Dapper Sapper and Explosives Expert (SotA) 2011-04-22 13:35:46 +02:00
kaelima
6ad2278ff5 Core/Spells: Move cloning spells to SpellScript 2011-04-17 16:44:45 +03: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
Shauren
c2a2d7201b DB/Skills: Changed required skill value to 0 for debug spell, spells with no skillline cant have skill value requirement
Fixed compile
2011-03-04 21:13:09 +01:00
Shauren
7ecaf1d816 Scripts/Spells: Cleanup in spell_generic 2011-03-04 20:20:06 +01:00
Shauren
8d5ebded8c Core/Spells: Moved dungeon encounter crediting to scripts 2011-02-04 11:27:02 +01:00
leak
137b079eea Core: Generic cleanup (tab2spaces/trailing whitespace removal) 2011-01-26 01:03:35 +01:00
Spp
bd2728eb74 Core: Fix some warnings 2011-01-11 11:18:00 +01:00
Manuel
5cf76896eb Core/Battleground: Implemented blizzlike script for Isle of Conquest, written by gyullo and me, based on Socolin's and Josh's patch -BIG THANKS TO THEM-
Anyway the map is not yet playable, there are issues not related with the script.

I also want to thanks to QAston, linencloth, Shauren and Machiavelli to be so patient with my questions.
2011-01-09 00:00:08 -03:00
Shauren
eec299e605 Core/Spells: Cleaned up Shaman 4P Enhancement and Paladin 2P Retribution set bonus code
SQL: Added missing sql for that revision, thx cyberbrest

Closes #12
2011-01-02 16:27:38 +01:00
John Holiver
2b42dcadf7 Fix T10 Bonus for:
- Paladin 2P Retribution
- Shaman 4P Enhancement
2011-01-02 12:40:07 +01:00