mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-03 01:42:27 +00:00
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:
commit
5535f88924
@ -3053,6 +3053,13 @@ void ZoneDatabase::LoadBuffs(Client *client)
|
||||
|
||||
for (int slot_id = 0; slot_id < max_buff_slots; ++slot_id) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user