mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-21 20:46:22 +00:00
Compile bug fixes.
This commit is contained in:
@@ -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