mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 20:02:27 +00:00
Merge pull request #427 from KinglyKrab/master
Fixed possible bot crashes due to nullptr conflict.
This commit is contained in:
commit
a583391319
@ -4249,7 +4249,7 @@ void Mob::TryCriticalHit(Mob *defender, uint16 skill, int32 &damage, ExtraAttack
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BOTS
|
#ifdef BOTS
|
||||||
if (this->IsPet() && this->GetOwner()->IsBot()) {
|
if (this->IsPet() && this->GetOwner() && this->GetOwner()->IsBot()) {
|
||||||
this->TryPetCriticalHit(defender,skill,damage);
|
this->TryPetCriticalHit(defender,skill,damage);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1105,7 +1105,7 @@ void Mob::AI_Process() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BOTS
|
#ifdef BOTS
|
||||||
if (IsPet() && GetOwner()->IsBot() && target == GetOwner())
|
if (IsPet() && GetOwner() && GetOwner()->IsBot() && target == GetOwner())
|
||||||
{
|
{
|
||||||
// this blocks all pet attacks against owner..bot pet test (copied above check)
|
// this blocks all pet attacks against owner..bot pet test (copied above check)
|
||||||
RemoveFromHateList(this);
|
RemoveFromHateList(this);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user