Core/Auras: Add some asserions to hunt down reason of a crash in Aura::UpdateTargetMap. Thanks to Shauren for inspiration.
--HG-- branch : trunk
This commit is contained in:
1 parent
f5492f82b5
commit
f4e46db38a
3 files changed
+9
-4
No files matched your search
@@ -3468,6 +3468,9 @@ AuraApplication * Unit::_CreateAuraApplication(Aura * aura, uint8 effMask)
|
||||
// aura musn't be removed
|
||||
ASSERT(!aura->IsRemoved());
|
||||
|
||||
// aura mustn't be already applied on target
|
||||
ASSERT (!aura->IsAppliedOnTarget(GetGUID()) && "Unit::_CreateAuraApplication: aura musn't be applied on target");
|
||||
|
||||
SpellEntry const* aurSpellInfo = aura->GetSpellProto();
|
||||
uint32 aurId = aurSpellInfo->Id;
|
||||
|
||||
|
||||
Reference in new issue
Block a user