[Crash fix] Owner check for AvoidAuraWithDynamicObj

This commit is contained in:
Yunfan Li
2024-07-16 11:00:19 +08:00
parent 9ef0f64301
commit 3e20d837bd

View File

@@ -1535,6 +1535,9 @@ bool AvoidAoeAction::AvoidAuraWithDynamicObj()
if (!aura || aura->IsRemoved() || aura->IsExpired()) { if (!aura || aura->IsRemoved() || aura->IsExpired()) {
return false; return false;
} }
if (!aura->GetOwner() || !aura->GetOwner()->IsInWorld()) {
return false;
}
// Crash fix: maybe change owner due to check interval // Crash fix: maybe change owner due to check interval
if (aura->GetType() != DYNOBJ_AURA_TYPE) { if (aura->GetType() != DYNOBJ_AURA_TYPE) {
return false; return false;