mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Compile bug fixes.
This commit is contained in:
@@ -1048,7 +1048,7 @@ bool MovementAction::Flee(Unit *target)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HostileReference* ref = target->GetThreatMgr().getCurrentVictim();
|
HostileReference* ref = target->getThreatMgr().getCurrentVictim();
|
||||||
if (ref && ref->getTarget() == bot) // bot is target - try to flee to tank or master
|
if (ref && ref->getTarget() == bot) // bot is target - try to flee to tank or master
|
||||||
{
|
{
|
||||||
if (Group* group = bot->GetGroup())
|
if (Group* group = bot->GetGroup())
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ bool HasAggroValue::Calculate()
|
|||||||
ref = ref->next();
|
ref = ref->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
ref = target->GetThreatMgr().getCurrentVictim();
|
ref = target->getThreatMgr().getCurrentVictim();
|
||||||
if (ref)
|
if (ref)
|
||||||
{
|
{
|
||||||
if (Unit* victim = ref->getTarget())
|
if (Unit* victim = ref->getTarget())
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ void AttackersValue::AddAttackersOf(Player* player, std::set<Unit*>& targets)
|
|||||||
{
|
{
|
||||||
if (!player->GetGroup())
|
if (!player->GetGroup())
|
||||||
{
|
{
|
||||||
if (!unit->GetThreatMgr().getThreat(player) && (!unit->GetThreatMgr().getCurrentVictim() || unit->GetThreatMgr().getCurrentVictim()->getTarget() != player))
|
if (!unit->getThreatMgr().getThreat(player) && (!unit->getThreatMgr().getCurrentVictim() || unit->getThreatMgr().getCurrentVictim()->getTarget() != player))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user