mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
pet attack status fix
This commit is contained in:
parent
a876c7c033
commit
cef7402677
@ -106,12 +106,12 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/)
|
|||||||
{
|
{
|
||||||
if (with_pet) {
|
if (with_pet) {
|
||||||
pet->SetTarget(target->GetGUID());
|
pet->SetTarget(target->GetGUID());
|
||||||
pet->GetCharmInfo()->SetCommandState(COMMAND_ATTACK);
|
// pet->GetCharmInfo()->SetCommandState(COMMAND_ATTACK);
|
||||||
pet->GetCharmInfo()->SetIsCommandAttack(true);
|
pet->GetCharmInfo()->SetIsCommandAttack(true);
|
||||||
pet->AI()->AttackStart(target);
|
pet->AI()->AttackStart(target);
|
||||||
pet->SetReactState(REACT_DEFENSIVE);
|
pet->SetReactState(REACT_DEFENSIVE);
|
||||||
} else {
|
} else {
|
||||||
pet->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW);
|
// pet->GetCharmInfo()->SetCommandState(COMMAND_FOLLOW);
|
||||||
pet->GetCharmInfo()->SetIsCommandFollow(true);
|
pet->GetCharmInfo()->SetIsCommandFollow(true);
|
||||||
pet->GetCharmInfo()->IsReturning();
|
pet->GetCharmInfo()->IsReturning();
|
||||||
pet->GetMotionMaster()->MoveFollow(bot, PET_FOLLOW_DIST, pet->GetFollowAngle());
|
pet->GetMotionMaster()->MoveFollow(bot, PET_FOLLOW_DIST, pet->GetFollowAngle());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user