mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 17:09:08 +00:00
ammo, pet return
This commit is contained in:
@@ -72,6 +72,7 @@ bool DropTargetAction::Execute(Event event)
|
||||
context->GetValue<Unit*>("current target")->Set(nullptr);
|
||||
|
||||
bot->SetTarget(ObjectGuid::Empty);
|
||||
bot->SetSelection(ObjectGuid());
|
||||
botAI->ChangeEngine(BOT_STATE_NON_COMBAT);
|
||||
botAI->InterruptSpell();
|
||||
bot->AttackStop();
|
||||
@@ -84,6 +85,8 @@ bool DropTargetAction::Execute(Event event)
|
||||
pet->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW);
|
||||
pet->GetCharmInfo()->SetIsCommandFollow(true);
|
||||
pet->AttackStop();
|
||||
pet->GetCharmInfo()->IsReturning();
|
||||
pet->GetMotionMaster()->MoveFollow(bot, PET_FOLLOW_DIST, pet->GetFollowAngle());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user