Port fixes until b4094bf - flying, mount animations, bot attack range, free food option

This commit is contained in:
郑佩茹
2022-03-22 17:13:10 -06:00
parent 44600080ec
commit f1bcca1a7b
25 changed files with 224 additions and 32 deletions

View File

@@ -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;
}