Merge pull request #346 from liyunfan1223/fix-crash-avoid-aoe

[Crash fix] Owner check for AvoidAuraWithDynamicObj
This commit is contained in:
Yunfan Li
2024-07-16 12:47:16 +08:00
committed by GitHub

View File

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