fix(Core/Pets): Manual using pet spell should not reset attack command. (#9635)
Fixes #9632
This commit is contained in:
parent
d3956f3142
commit
19b68ffb57
4 changed files with 13 additions and 11 deletions
|
|
@ -19652,7 +19652,7 @@ void Unit::PetSpellFail(const SpellInfo* spellInfo, Unit* target, uint32 result)
|
|||
{
|
||||
AttackStop();
|
||||
charmInfo->SetIsAtStay(false);
|
||||
charmInfo->SetIsCommandAttack(!ToCreature()->HasReactState(REACT_PASSIVE));
|
||||
charmInfo->SetIsCommandAttack(true);
|
||||
charmInfo->SetIsReturning(false);
|
||||
charmInfo->SetIsFollowing(false);
|
||||
|
||||
|
|
@ -19662,7 +19662,7 @@ void Unit::PetSpellFail(const SpellInfo* spellInfo, Unit* target, uint32 result)
|
|||
{
|
||||
AttackStop();
|
||||
charmInfo->SetIsAtStay(false);
|
||||
charmInfo->SetIsCommandAttack(!ToCreature()->HasReactState(REACT_PASSIVE));
|
||||
charmInfo->SetIsCommandAttack(true);
|
||||
charmInfo->SetIsReturning(false);
|
||||
charmInfo->SetIsFollowing(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue