mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-17 18:55:41 +00:00
sync with azerothcore
This commit is contained in:
@@ -29,7 +29,7 @@ class FindDeadPlayer : public FindPlayerPredicate
|
||||
bool Check(Unit* unit) override
|
||||
{
|
||||
Player* player = unit->ToPlayer();
|
||||
return player && !player->isResurrectRequested() && player->getDeathState() == CORPSE && !value->IsTargetOfSpellCast(player, predicate);
|
||||
return player && !player->isResurrectRequested() && player->getDeathState() == DeathState::Corpse && !value->IsTargetOfSpellCast(player, predicate);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -151,7 +151,7 @@ CreatureData const* BgMasterValue::NearestBm(bool allowDead)
|
||||
continue;
|
||||
|
||||
//Is the unit dead?
|
||||
if (unit->getDeathState() == DEAD)
|
||||
if (unit->getDeathState() == DeathState::Dead)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ bool IsDeadValue::Calculate()
|
||||
if (!target)
|
||||
return false;
|
||||
|
||||
return target->getDeathState() != ALIVE;
|
||||
return target->getDeathState() != DeathState::Alive;
|
||||
}
|
||||
|
||||
bool PetIsDeadValue::Calculate()
|
||||
@@ -51,7 +51,7 @@ bool PetIsDeadValue::Calculate()
|
||||
if (bot->GetPetGUID() && !bot->GetPet())
|
||||
return true;
|
||||
|
||||
return bot->GetPet() && bot->GetPet()->getDeathState() != ALIVE;
|
||||
return bot->GetPet() && bot->GetPet()->getDeathState() != DeathState::Alive;
|
||||
}
|
||||
|
||||
bool PetIsHappyValue::Calculate()
|
||||
|
||||
Reference in New Issue
Block a user