Commit Graph
31 Commits
Author SHA1 Message Date
joschiwald af50ce6223 Core/Spell: convert more spells to SpellScripts 2013-01-22 23:36:51 +01:00
joschiwald c38d95ac33 Core/Spells: convert some spells to SpellScripts 2013-01-20 04:30:17 +01:00
joschiwald 2f1bbb2c7a Misc: Reorder more scripts in some script files and some cosmetic stuff 2013-01-13 02:41:40 +01:00
joschiwald 95f8068a6f Misc: Reorder more scripts in some script files and some cosmetic stuff 2013-01-12 02:16:30 +01:00
joschiwald 0c16b95905 Misc: Reorder scripts in some script files and some cosmetic stuff 2013-01-11 04:18:02 +01:00
joschiwald 89490e4d7f Core/SpellScripts: implement Spell Proc Hooks and use it in old and new proc system
Hooks:
- DoCheckProc: executed when aura checks if it can proc
- DoPrepareProc: executed before aura procs (possibility to prevent charge drop/cooldown)
- OnProc: executed when aura procs
- OnEffectProc: executed when aura effect procs
- AfterEffectProc: executed after aura effect proced
- AfterProc: executed after aura proced and charges removed

using PreventDefaultAction() in DoPrepareProc will prevent charge drop and cooldown

default execution of a proc can prevented in OnEffectProc with PreventDefaultAction()

Now we should be able to convert almost all procs from Unit::ProcDamageAndSpellFor to SpellScripts

Notes to old proc system:
- if a proc has a cooldown we must check it in spellscript and add it when we handle the proc
- behavior with charge drops is possible undefined (use PreventDefaultAction() in OnEffectProc to notify that the script is executed)
2013-01-11 01:21:44 +01:00
joschiwald 18bfa14b74 Core/DisableMgr: readd possibility to disable los check for spells 2012-12-31 01:48:51 +01:00
joschiwald 08f62d8313 Core/MMaps: use DisableMgr to disable pathfinding on a specific map 2012-12-30 21:09:21 +01:00
joschiwald 22896bd7a4 Core/VMaps: drop "vmap.ignoreSpellIds" in config, this is not longer necessary since we use SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS 2012-12-30 18:52:32 +01:00
joschiwald 3288d7024a Core/Spells: fix possible crash when loading spell_proc table 2012-12-27 06:04:45 +01:00
joschiwald c19f78c363 Core/Conditions: implement CONDITION_SOURCE_TYPE_SPELL_PROC and use it in old and new proc system
Usage:
SourceTypeOrReferenceId: 24
- SourceGroup: always 0
- SourceEntry: spell id of aura which triggers the proc
- ConditionTarget:
 * 0 - Actor
 * 1 - ActionTarget
2012-12-22 01:37:54 +01:00
joschiwald 4116ba75e3 DB/Conditions: Fix typo in f4e7cde1b5 (argh .... i've failed) 2012-12-20 23:19:29 +01:00
joschiwald f4e7cde1b5 Core/Misc:
- some simplifications in reputation calculation
- removed aura in SPELL_AURA_LINKED should depends on SpellDifficulty
- remove some unneeded variable declarations when it's already declared
- remove some hacks
- fix some warnings in Lfg stuff
- some codestyle changes
2012-12-19 12:55:51 +01:00
joschiwald 5c33c54054 Core/Player: correct SetHomebind and cleanup Spell::EffectBind 2012-12-08 23:46:16 +01:00
joschiwald de96841579 Scripts/Ulduar: convert all script_texts to creature_text from this zone 2012-12-01 04:27:40 +01:00
joschiwald 32c4e30599 Scripts/Ulduar: cleanup Assembly of Iron 2012-11-30 21:37:46 +01:00
joschiwald 2a4ba49664 Core/Guilds: Fix bank money log after 58ec4e53 (due to bad opcode structure).
Closes #8432
2012-11-26 08:48:51 +01:00
joschiwald e83c5d1a0f Core/Conditions: use proper SpellCastResult instead of Notification when CONDITION_SOURCE_TYPE_SPELL fails 2012-11-24 02:45:48 +01:00
joschiwald fe970b1c1e DB/Conditions: Fix 'Foam Sword Attack' / 'Foam Sword Attack' targets 2012-08-27 19:56:07 +02:00
joschiwald d07be0cf61 DB/Player: Fix draenei race spell 'Shadow Resistance' 2012-08-27 17:08:30 +02:00
joschiwald f57531376b DB/Conditions: Fix startup db errors
Closes #7334
2012-08-10 03:03:52 +01:00
joschiwald af92a36e88 Core/Logging: Use config LogsDir to save log files (re-added) 2012-08-04 02:55:11 +01:00
joschiwald 8ab6d578ce fix typos - i failed so hard :( 2012-06-08 22:25:33 +02:00
joschiwald 7e454b26ac more updates 2012-06-03 02:35:00 +02:00
joschiwald 1bfd6605af fix compile 2012-05-28 04:29:59 +02:00
joschiwald cd7ab6f3a5 Merge branch 'master' of github.com:joschiwald/TrinityCore into spellscripts
Conflicts:
	src/server/game/Entities/Unit/Unit.cpp
	src/server/game/Spells/Auras/SpellAuraEffects.cpp
	src/server/game/Spells/Spell.cpp
	src/server/game/Spells/SpellEffects.cpp
	src/server/scripts/Spells/spell_paladin.cpp
2012-05-28 04:27:51 +02:00
joschiwald ca07f30d03 Core/Spells: convert some spell effects to SpellScripts 2012-05-28 04:07:51 +02:00
joschiwald 4e354d6ca9 Core/Spells: fix damage mods from caster on target 2012-05-11 22:43:06 +02:00
joschiwald 1ddf039de8 Core/CreatureTextMgr: Fix crash in GetLocalizedChatString() 2012-03-10 20:21:27 +01:00
joschiwald 96a05600c4 Core/Commands: add command to reload locales_creature_text 2012-03-05 23:25:32 +01:00
joschiwald 7683297423 Core/CreatureTextMgr: Fix typo in LoadCreatureTextLocales() 2012-03-05 23:23:23 +01:00