mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Crash fix] Owner check for AvoidAuraWithDynamicObj
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user