mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Hack to fix RNG Nature Veil line
This commit is contained in:
parent
f26dce39c3
commit
538d6a2a33
@ -235,8 +235,11 @@ bool IsBeneficialSpell(uint16 spell_id)
|
||||
// If the resisttype is magic and SpellAffectIndex is Calm/memblur/dispell sight
|
||||
// it's not beneficial
|
||||
if (spells[spell_id].resisttype == RESIST_MAGIC) {
|
||||
if (sai == SAI_Calm || sai == SAI_Dispell_Sight ||
|
||||
sai == SAI_Memory_Blur || sai == SAI_Calm_Song)
|
||||
// checking these SAI cause issues with the rng defensive proc line
|
||||
// So I guess instead of fixing it for real, just a quick hack :P
|
||||
if (spells[spell_id].effectid[0] != SE_DefensiveProc &&
|
||||
(sai == SAI_Calm || sai == SAI_Dispell_Sight || sai == SAI_Memory_Blur ||
|
||||
sai == SAI_Calm_Song))
|
||||
return false;
|
||||
} else {
|
||||
// If the resisttype is not magic and spell is Bind Sight or Cast Sight
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user