Core/Auras: Don't save auras to db with SpellAuraInterruptFlags::LeaveWorld

This commit is contained in:
Shauren
2022-07-07 16:03:43 +02:00
parent 49ad0d2d49
commit 3d34febd6d

View File

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