mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 09:50:27 +00:00
Port fixes until b4094bf - flying, mount animations, bot attack range, free food option
This commit is contained in:
@@ -470,10 +470,6 @@ bool RpgDuelAction::isUseful()
|
||||
return false;
|
||||
}
|
||||
|
||||
// Less spammy duels
|
||||
if (bot->getLevel() == 1)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -488,3 +484,17 @@ bool RpgDuelAction::Execute(Event event)
|
||||
|
||||
return botAI->DoSpecificAction("cast custom spell", Event("rpg action", chat->FormatWorldobject(player) + " 7266"), true);
|
||||
}
|
||||
|
||||
|
||||
bool RpgMountAnimAction::isUseful()
|
||||
{
|
||||
return AI_VALUE2(bool, "mounted", "self target") && !AI_VALUE2(bool, "moving", "self target");
|
||||
}
|
||||
|
||||
bool RpgMountAnimAction::Execute(Event event)
|
||||
{
|
||||
WorldPacket p;
|
||||
bot->GetSession()->HandleMountSpecialAnimOpcode(p);
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user