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

Port From (https://github.com/TrinityCore/TrinityCore/commit/3d34febd6dc586e8daf8a11b72c831918ec688cd)
This commit is contained in:
hondacrx
2022-07-09 12:30:04 -04:00
parent f42b21a6de
commit 52523ce8ee
+4
View File
@@ -2889,6 +2889,10 @@ namespace Game.Entities
}
}
}
// Saving to DB happens before removing from world - skip saving these auras
if (spellInfo.HasAuraInterruptFlag(SpellAuraInterruptFlags.LeaveWorld))
spellInfo.AttributesCu |= SpellCustomAttributes.AuraCannotBeSaved;
}
// addition for binary spells, omit spells triggering other spells