mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
[Crash fix] Owner check for AvoidAuraWithDynamicObj
This commit is contained in:
parent
9ef0f64301
commit
3e20d837bd
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user