mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Cleanup] Utilize IsTaunting(), SetPetPower(), SetPetType(), and SetTaunting() (#3275)
* [Cleanup] Utilize SetPetPower() in zone/pets.cpp # Notes - This wasn't used before. * Utilize other methods. * Update special_attacks.cpp
This commit is contained in:
@@ -1730,7 +1730,13 @@ void NPC::DoClassAttacks(Mob *target) {
|
||||
|
||||
//general stuff, for all classes....
|
||||
//only gets used when their primary ability get used too
|
||||
if (taunting && HasOwner() && target->IsNPC() && target->GetBodyType() != BT_Undead && taunt_time) {
|
||||
if (
|
||||
IsTaunting() &&
|
||||
HasOwner() &&
|
||||
target->IsNPC() &&
|
||||
target->GetBodyType() != BT_Undead &&
|
||||
taunt_time
|
||||
) {
|
||||
GetOwner()->MessageString(Chat::PetResponse, PET_TAUNTING);
|
||||
Taunt(target->CastToNPC(), false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user