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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user