Core/Spells: Fix assert triggered
Port From (https://github.com/TrinityCore/TrinityCore/commit/36468203ddf9adb1a4c64f663aff6505701b8fb6)
This commit is contained in:
@@ -1475,8 +1475,9 @@ namespace Game.Entities
|
||||
{
|
||||
// can't apply aura on unit which is going to be deleted - to not create a memory leak
|
||||
Cypher.Assert(!m_cleanupDone);
|
||||
// aura musn't be removed
|
||||
Cypher.Assert(!aura.IsRemoved());
|
||||
// aura musn't be removed (but it could have been removed by OnEffectHitTarget script handler
|
||||
// casting a spell that killed the target and set deathState to CORPSE)
|
||||
Cypher.Assert(!aura.IsRemoved() || !IsAlive());
|
||||
|
||||
// aura mustn't be already applied on target
|
||||
Cypher.Assert(!aura.IsAppliedOnTarget(GetGUID()), "Unit._CreateAuraApplication: aura musn't be applied on target");
|
||||
|
||||
Reference in New Issue
Block a user