mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-28 21:52:17 +00:00
SE_IllusionPersistence affects self only
This commit is contained in:
1 parent
a46b1ac18b
commit
70048eb6e1
3 files changed
+7
-6
No files matched your search
@@ -2624,6 +2624,10 @@ int Mob::CalcBuffDuration(Mob *caster, Mob *target, uint16 spell_id, int32 caste
|
||||
castlevel = caster_level_override;
|
||||
|
||||
int res = CalcBuffDuration_formula(castlevel, formula, duration);
|
||||
if (caster == target && (target->aabonuses.IllusionPersistence || target->spellbonuses.IllusionPersistence ||
|
||||
target->itembonuses.IllusionPersistence) &&
|
||||
IsEffectInSpell(spell_id, SE_Illusion))
|
||||
res = 10000; // ~16h override
|
||||
|
||||
res = mod_buff_duration(res, caster, target, spell_id);
|
||||
|
||||
|
||||
Reference in new issue
Block a user