From 3e20d837bde6efd455eb6ed32a8b267aaeeadc0e Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Tue, 16 Jul 2024 11:00:19 +0800 Subject: [PATCH] [Crash fix] Owner check for AvoidAuraWithDynamicObj --- src/strategy/actions/MovementActions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/strategy/actions/MovementActions.cpp b/src/strategy/actions/MovementActions.cpp index 6a67e01b1..0dfea8730 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -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;