Merge pull request #73 from Valorith/copilot/sub-pr-68

Fix suppressed buff effect restoration + drop suppressed illusions on zone/relog
This commit is contained in:
Vayle 2026-03-09 17:41:30 -04:00 committed by GitHub
commit 5535f88924
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
} }