[Spells] Fixed issue with permanent Illusions not being consistent when zoning. (#1876)

* start of work

* updates

* [Spells] Fixed issue with permanent Illusions not being consistent when zoning.
This commit is contained in:
KayenEQ
2021-12-10 12:21:19 -05:00
committed by GitHub
parent eb2b4fd9e0
commit 550485ba33
5 changed files with 126 additions and 157 deletions
+1 -1
View File
@@ -2930,7 +2930,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) &&
spell_id != 287 && spell_id != 601 && IsEffectInSpell(spell_id, SE_Illusion))
spell_id != SPELL_MINOR_ILLUSION && spell_id != SPELL_ILLUSION_TREE && IsEffectInSpell(spell_id, SE_Illusion))
res = 10000; // ~16h override