mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
Fix buff suppression state not persisting across zones
When a player zones while having suppressed buffs (via the spell suppression system), the suppression state was not saved to the database. On zone-in, suppressed buffs were restored as normal active buffs, causing non-persistent illusions to be incorrectly removed. Changes: - Add 'suppressed' column to character_buffs table (tinyint, default 0) - SaveBuffs(): Save suppressed flag (1 when buff is in SPELL_SUPPRESSED state) - LoadBuffs(): Restore buffs in suppressed state when suppressed=1, setting spellid=SPELL_SUPPRESSED and populating suppressedid/ suppressedticsremaining from the saved spell_id and ticsremaining - LoadBuffs(): Skip suppressed buffs in the illusion/charm removal loop so they are not incorrectly stripped on zone-in Fixes #33
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- Add suppressed column to character_buffs to persist buff suppression state across zones
|
||||
ALTER TABLE `character_buffs` ADD COLUMN `suppressed` tinyint(1) unsigned NOT NULL DEFAULT 0 AFTER `instrument_mod`;
|
||||
Reference in New Issue
Block a user