TrinityCore/TrinityCore — pull request #8879 by joschiwald (2013-01-08 02:30:43+00:00)
Title: 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
- 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

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 are possible undefined and must be optimized