mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-04 02:42:26 +00:00
Drop suppressed illusions on zone/relog session change
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
2cc9c25d9e
commit
1ccf5dd805
@ -3053,6 +3053,13 @@ void ZoneDatabase::LoadBuffs(Client *client)
|
|||||||
|
|
||||||
for (int slot_id = 0; slot_id < max_buff_slots; ++slot_id) {
|
for (int slot_id = 0; slot_id < max_buff_slots; ++slot_id) {
|
||||||
if (buffs[slot_id].spellid == SPELL_SUPPRESSED) {
|
if (buffs[slot_id].spellid == SPELL_SUPPRESSED) {
|
||||||
|
// Suppressed illusions should drop on zone/relog rather than being unsuppressed later
|
||||||
|
if (IsValidSpell(buffs[slot_id].suppressedid) &&
|
||||||
|
IsEffectInSpell(buffs[slot_id].suppressedid, SpellEffect::Illusion)) {
|
||||||
|
buffs[slot_id].spellid = SPELL_UNKNOWN;
|
||||||
|
buffs[slot_id].suppressedid = SPELL_UNKNOWN;
|
||||||
|
buffs[slot_id].suppressedticsremaining = -1;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user