[Spells] Update SPA 238 SE_IllusionPersistence allow illusions to persist through deaths at higher AA ranks. (#1884)

* start

* working
This commit is contained in:
KayenEQ authored and GitHub committed 2021-12-13 18:49:33 -05:00
1 parent 91c958ae63
commit 7cf66a2daa
5 files changed
+22 -9

No files matched your search

+10
View File
@@ -8938,3 +8938,13 @@ void Mob::ApplySpellEffectIllusion(int32 spell_id, Mob *caster, int buffslot, in
buffs[buffslot].persistant_buff = 0;
}
}
bool Mob::HasPersistDeathIllusion(int32 spell_id) {
if (spellbonuses.IllusionPersistence > 1 || aabonuses.IllusionPersistence > 1 || itembonuses.IllusionPersistence > 1) {
if (spell_id != SPELL_MINOR_ILLUSION && spell_id != SPELL_ILLUSION_TREE && IsEffectInSpell(spell_id, SE_Illusion) && IsBeneficialSpell(spell_id)) {
return true;
}
}
return false;
}