naxx chat short cut

This commit is contained in:
Yunfan Li
2023-06-11 23:20:57 +08:00
parent 81149246c4
commit c9367debeb
6 changed files with 26 additions and 2 deletions

View File

@@ -188,3 +188,16 @@ bool MaxDpsChatShortcutAction::Execute(Event event)
return true;
}
bool NaxxChatShortcutAction::Execute(Event event)
{
Player* master = GetMaster();
if (!master)
return false;
botAI->Reset();
botAI->ChangeStrategy("+naxx", BOT_STATE_NON_COMBAT);
botAI->ChangeStrategy("+naxx", BOT_STATE_COMBAT);
bot->Say("Add Naxx Strategies!", LANG_UNIVERSAL);
return true;
}