[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
2021-12-13 18:49:33 -05:00
committed by GitHub
parent 91c958ae63
commit 7cf66a2daa
5 changed files with 22 additions and 9 deletions
+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;
}