Exclude Minor Illusion and Illusion: Tree from perma

This commit is contained in:
Michael Cook (mackal) 2016-07-16 19:33:36 -04:00
parent 9cf553232d
commit d4df2e7351

View File

@ -2663,7 +2663,7 @@ int Mob::CalcBuffDuration(Mob *caster, Mob *target, uint16 spell_id, int32 caste
int res = CalcBuffDuration_formula(castlevel, formula, duration);
if (caster == target && (target->aabonuses.IllusionPersistence || target->spellbonuses.IllusionPersistence ||
target->itembonuses.IllusionPersistence) &&
IsEffectInSpell(spell_id, SE_Illusion))
spell_id != 287 && spell_id != 601 && IsEffectInSpell(spell_id, SE_Illusion))
res = 10000; // ~16h override
res = mod_buff_duration(res, caster, target, spell_id);