fix
This commit is contained in:
@@ -118,6 +118,7 @@ m_SeduceTarget(ObjectGuid::Empty),
|
||||
m_MasterPlayer(NULL),
|
||||
m_FullDispel(0),
|
||||
m_MeleeFleeTick(0),
|
||||
m_AttackDbgTick(0),
|
||||
bothp(0),
|
||||
m_ForceFlee(false),
|
||||
m_StopFollow(false),
|
||||
@@ -271,12 +272,12 @@ void BotGroupAI::ProcessAttackCommand()
|
||||
}
|
||||
if (!me->IsValidAttackTarget(pMasterTarget))
|
||||
{
|
||||
TC_LOG_ERROR("botai", "ATTACKDBG %s: cible %u (entree %u) refusee par IsValidAttackTarget.",
|
||||
TC_LOG_ERROR("botai", "ATTACKDBG %s: cible " UI64FMTD " (entree %u) refusee par IsValidAttackTarget.",
|
||||
me->GetName().c_str(), pMasterTarget->GetGUID().GetCounter(),
|
||||
pMasterTarget->ToCreature() ? pMasterTarget->ToCreature()->GetEntry() : 0);
|
||||
return;
|
||||
}
|
||||
TC_LOG_ERROR("botai", "ATTACKDBG %s: cible %u (entree %u) retenue, distance %.1f.",
|
||||
TC_LOG_ERROR("botai", "ATTACKDBG %s: cible " UI64FMTD " (entree %u) retenue, distance %.1f.",
|
||||
me->GetName().c_str(), pMasterTarget->GetGUID().GetCounter(),
|
||||
pMasterTarget->ToCreature() ? pMasterTarget->ToCreature()->GetEntry() : 0,
|
||||
me->GetDistance(pMasterTarget));
|
||||
@@ -3049,7 +3050,7 @@ Unit* BotGroupAI::GetBotAIValidSelectedUnit()
|
||||
else if (IsNotSelect(pTarget)) motif = "IsNotSelect";
|
||||
else if (TargetIsControl(pTarget)) motif = "controle/evade";
|
||||
else if (m_FliterCreatures.IsFliterCreature(pTarget->ToCreature())) motif = "filtre";
|
||||
TC_LOG_ERROR("botai", "ATTACKDBG %s: cible %u rejetee -- %s.",
|
||||
TC_LOG_ERROR("botai", "ATTACKDBG %s: cible " UI64FMTD " rejetee -- %s.",
|
||||
me->GetName().c_str(), pTarget->GetGUID().GetCounter(), motif);
|
||||
}
|
||||
me->AttackStop();
|
||||
|
||||
@@ -224,6 +224,7 @@ protected:
|
||||
Player* m_MasterPlayer;
|
||||
uint32 m_FullDispel;
|
||||
uint32 m_MeleeFleeTick;
|
||||
uint32 m_AttackDbgTick;
|
||||
uint32 bothp;
|
||||
bool m_ForceFlee;
|
||||
bool m_StopFollow;
|
||||
|
||||
Reference in New Issue
Block a user