[Bug Fix] Target Locked Pet Taunt (#3894)

* [Bug Fix] Target Locked pet taunt

Target locked pets shouldn't taunt

* Update mob.h

---------

Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
Fryguy
2024-01-07 16:22:37 -05:00
committed by GitHub
parent 4490a53ba0
commit cd85a8524a
2 changed files with 11 additions and 9 deletions
+3 -1
View File
@@ -1812,7 +1812,9 @@ void NPC::DoClassAttacks(Mob *target) {
HasOwner() &&
target->IsNPC() &&
target->GetBodyType() != BT_Undead &&
taunt_time
taunt_time &&
type_of_pet &&
type_of_pet != petTargetLock
) {
GetOwner()->MessageString(Chat::PetResponse, PET_TAUNTING);
Taunt(target->CastToNPC(), false);