mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
Fix SE_TwinCastBlocker to block twinproc (#1476)
Improvement to SE_TwinCastBlocker implementation. Will now ensure both spell casted and weapon proced twincasts can be effectively blocked.
This commit is contained in:
@@ -4812,7 +4812,7 @@ int16 Client::CalcAAFocus(focusType type, const AA::Rank &rank, uint16 spell_id)
|
||||
break;
|
||||
|
||||
case SE_FcTwincast:
|
||||
if (type == focusTwincast)
|
||||
if (type == focusTwincast && !IsEffectInSpell(spell_id, SE_TwinCastBlocker))
|
||||
value = base1;
|
||||
break;
|
||||
|
||||
@@ -5382,7 +5382,7 @@ int16 Mob::CalcFocusEffect(focusType type, uint16 focus_id, uint16 spell_id, boo
|
||||
break;
|
||||
|
||||
case SE_FcTwincast:
|
||||
if (type == focusTwincast)
|
||||
if (type == focusTwincast && !IsEffectInSpell(spell_id, SE_TwinCastBlocker))
|
||||
value = focus_spell.base[i];
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user