Core/Misc: fixed more crashes related to the caster dependency removal

This commit is contained in:
Ovahlord committed 2022-10-09 10:45:10 +02:00
1 parent 10823f8fcc
commit 6fa4c22daf
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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)
{