Core/Misc: fixed more crashes related to the caster dependency removal
This commit is contained in:
1 parent
10823f8fcc
commit
6fa4c22daf
2 files changed
+2
-2
No files matched your search
@@ -751,7 +751,7 @@ bool Unit::HasBreakableByDamageCrowdControlAura(Unit* excludeCasterChannel) cons
|
||||
// Sparring Checks
|
||||
if (Creature* target = victim->ToCreature())
|
||||
{
|
||||
if (attacker->IsCreature() && !attacker->IsCharmedOwnedByPlayerOrPlayer())
|
||||
if (attacker && attacker->IsCreature() && !attacker->IsCharmedOwnedByPlayerOrPlayer())
|
||||
{
|
||||
if (target->GetNoNpcDamageBelowPctHealthValue() != 0.0f)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user