mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-15 08:06:11 +00:00
Compile bug fixes.
This commit is contained in:
@@ -15,9 +15,9 @@ struct Mail;
|
||||
class MailProcessor
|
||||
{
|
||||
public:
|
||||
virtual bool Before([[maybe_unused]] PlayerbotAI* botAI) { return true; } // unused param - whipowill
|
||||
virtual bool Before([[maybe_unused]] PlayerbotAI* botAI) { return true; }
|
||||
virtual bool Process(uint32 index, Mail* mail, PlayerbotAI* botAI) = 0;
|
||||
virtual bool After([[maybe_unused]] PlayerbotAI* botAI) { return true; } // unused param - whipowill
|
||||
virtual bool After([[maybe_unused]] PlayerbotAI* botAI) { return true; }
|
||||
|
||||
static ObjectGuid FindMailbox(PlayerbotAI* botAI);
|
||||
|
||||
|
||||
@@ -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 (Group* group = bot->GetGroup())
|
||||
|
||||
Reference in New Issue
Block a user