bwl strategy

This commit is contained in:
Yunfan Li
2023-08-28 21:21:58 +08:00
parent b97876dbc2
commit dba908be9e
18 changed files with 196 additions and 20 deletions

View File

@@ -200,4 +200,17 @@ bool NaxxChatShortcutAction::Execute(Event event)
botAI->ChangeStrategy("+naxx", BOT_STATE_COMBAT);
bot->Say("Add Naxx Strategies!", LANG_UNIVERSAL);
return true;
}
}
bool BwlChatShortcutAction::Execute(Event event)
{
Player* master = GetMaster();
if (!master)
return false;
botAI->Reset();
botAI->ChangeStrategy("+bwl", BOT_STATE_NON_COMBAT);
botAI->ChangeStrategy("+bwl", BOT_STATE_COMBAT);
bot->Say("Add Bwl Strategies!", LANG_UNIVERSAL);
return true;
}