mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-03 10:53:48 +00:00
Reset prioritized targets
This commit is contained in:
@@ -802,7 +802,7 @@ AiPlayerbot.PremadeSpecGlyph.2.0 = 41106,43367,45741,43369,43365,41109
|
|||||||
AiPlayerbot.PremadeSpecLink.2.0.60 = 50350151020013053100515221
|
AiPlayerbot.PremadeSpecLink.2.0.60 = 50350151020013053100515221
|
||||||
AiPlayerbot.PremadeSpecLink.2.0.80 = 50350152220013053100515221-503201312
|
AiPlayerbot.PremadeSpecLink.2.0.80 = 50350152220013053100515221-503201312
|
||||||
AiPlayerbot.PremadeSpecName.2.1 = prot pve
|
AiPlayerbot.PremadeSpecName.2.1 = prot pve
|
||||||
AiPlayerbot.PremadeSpecGlyph.2.1 = 41100,43367,43869,43369,43365,45745
|
AiPlayerbot.PremadeSpecGlyph.2.1 = 41099,43367,43869,43369,43365,45745
|
||||||
AiPlayerbot.PremadeSpecLink.2.1.60 = -05005135203102311333112321
|
AiPlayerbot.PremadeSpecLink.2.1.60 = -05005135203102311333112321
|
||||||
AiPlayerbot.PremadeSpecLink.2.1.80 = -05005135203102311333312321-502302012003
|
AiPlayerbot.PremadeSpecLink.2.1.80 = -05005135203102311333312321-502302012003
|
||||||
AiPlayerbot.PremadeSpecName.2.2 = ret pve
|
AiPlayerbot.PremadeSpecName.2.2 = ret pve
|
||||||
|
|||||||
@@ -682,6 +682,7 @@ void PlayerbotAI::Reset(bool full)
|
|||||||
|
|
||||||
aiObjectContext->GetValue<Unit*>("old target")->Set(nullptr);
|
aiObjectContext->GetValue<Unit*>("old target")->Set(nullptr);
|
||||||
aiObjectContext->GetValue<Unit*>("current target")->Set(nullptr);
|
aiObjectContext->GetValue<Unit*>("current target")->Set(nullptr);
|
||||||
|
aiObjectContext->GetValue<Unit*>("prioritized targets")->Reset();
|
||||||
aiObjectContext->GetValue<ObjectGuid>("pull target")->Set(ObjectGuid::Empty);
|
aiObjectContext->GetValue<ObjectGuid>("pull target")->Set(ObjectGuid::Empty);
|
||||||
aiObjectContext->GetValue<GuidPosition>("rpg target")->Set(GuidPosition());
|
aiObjectContext->GetValue<GuidPosition>("rpg target")->Set(GuidPosition());
|
||||||
aiObjectContext->GetValue<LootObject>("loot target")->Set(LootObject());
|
aiObjectContext->GetValue<LootObject>("loot target")->Set(LootObject());
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ bool FollowChatShortcutAction::Execute(Event event)
|
|||||||
// botAI->Reset();
|
// botAI->Reset();
|
||||||
botAI->ChangeStrategy("+follow,-passive,-grind,-move from group", BOT_STATE_NON_COMBAT);
|
botAI->ChangeStrategy("+follow,-passive,-grind,-move from group", BOT_STATE_NON_COMBAT);
|
||||||
botAI->ChangeStrategy("-follow,-passive,-grind,-move from group", BOT_STATE_COMBAT);
|
botAI->ChangeStrategy("-follow,-passive,-grind,-move from group", BOT_STATE_COMBAT);
|
||||||
botAI->GetAiObjectContext()->GetValue<GuidVector>("prioritized targets")->Set({});
|
botAI->GetAiObjectContext()->GetValue<GuidVector>("prioritized targets")->Reset();
|
||||||
|
|
||||||
PositionMap& posMap = context->GetValue<PositionMap&>("position")->Get();
|
PositionMap& posMap = context->GetValue<PositionMap&>("position")->Get();
|
||||||
PositionInfo pos = posMap["return"];
|
PositionInfo pos = posMap["return"];
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
|
|||||||
{
|
{
|
||||||
bot->ResurrectPlayer(1.0f, false);
|
bot->ResurrectPlayer(1.0f, false);
|
||||||
botAI->TellMasterNoFacing("I live, again!");
|
botAI->TellMasterNoFacing("I live, again!");
|
||||||
botAI->GetAiObjectContext()->GetValue<GuidVector>("prioritized targets")->Set({});
|
botAI->GetAiObjectContext()->GetValue<GuidVector>("prioritized targets")->Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
player->GetMotionMaster()->Clear();
|
player->GetMotionMaster()->Clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user