mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Merge pull request #346 from liyunfan1223/fix-crash-avoid-aoe
[Crash fix] Owner check for AvoidAuraWithDynamicObj
This commit is contained in:
commit
9b1736e61f
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user