mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[9456] Fixed spell proc code for mixed proc event cases.
* Allow spells with multiple procEx flags to trigger also with 0 dmg, if current procExtra is no normal hit (e.g. block and normal hit as flags -> all dmg blocked). * Also allow proc at hit as result partly block. This fix case from unknown author prepered by KAPATEJIb. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
62726741d6
commit
1e05a737bd
3 changed files with 6 additions and 3 deletions
|
|
@ -1154,8 +1154,8 @@ bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const * spellP
|
|||
// Exist req for PROC_EX_EX_TRIGGER_ALWAYS
|
||||
if (procEvent_procEx & PROC_EX_EX_TRIGGER_ALWAYS)
|
||||
return true;
|
||||
// Passive spells can`t trigger if need hit
|
||||
if ((procEvent_procEx & PROC_EX_NORMAL_HIT) && !active)
|
||||
// Passive spells can`t trigger if need hit (exclude cases when procExtra include non-active flags)
|
||||
((procEvent_procEx & PROC_EX_NORMAL_HIT & procExtra) && !active)
|
||||
return false;
|
||||
// Check Extra Requirement like (hit/crit/miss/resist/parry/dodge/block/immune/reflect/absorb and other)
|
||||
if (procEvent_procEx & procExtra)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue