mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Auras: Don't save auras to db with SpellAuraInterruptFlags::LeaveWorld
This commit is contained in:
@@ -3203,6 +3203,10 @@ void SpellMgr::LoadSpellInfoCustomAttributes()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Saving to DB happens before removing from world - skip saving these auras
|
||||
if (spellInfoMutable->HasAuraInterruptFlag(SpellAuraInterruptFlags::LeaveWorld))
|
||||
spellInfoMutable->AttributesCu |= SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED;
|
||||
}
|
||||
|
||||
// addition for binary spells, omit spells triggering other spells
|
||||
|
||||
Reference in New Issue
Block a user