mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Merge branch 'master' into wp_master
This commit is contained in:
@@ -10030,6 +10030,14 @@ void Client::Handle_OP_PetCommands(const EQApplicationPacket *app)
|
||||
break;
|
||||
}
|
||||
|
||||
// default range is 200, takes Z into account
|
||||
// really they do something weird where they're added to the aggro list then remove them
|
||||
// and will attack if they come in range -- too lazy, lets remove exploits for now
|
||||
if (DistanceSquared(mypet->GetPosition(), target->GetPosition()) >= RuleR(Aggro, PetAttackRange)) {
|
||||
// they say they're attacking then remove on live ... so they don't really say anything in this case ...
|
||||
break;
|
||||
}
|
||||
|
||||
if ((mypet->GetPetType() == petAnimation && aabonuses.PetCommands[PetCommand]) || mypet->GetPetType() != petAnimation) {
|
||||
if (target != this && DistanceSquaredNoZ(mypet->GetPosition(), target->GetPosition()) <= (RuleR(Pets, AttackCommandRange)*RuleR(Pets, AttackCommandRange))) {
|
||||
if (mypet->IsPetStop()) {
|
||||
@@ -13688,6 +13696,11 @@ void Client::Handle_OP_Taunt(const EQApplicationPacket *app)
|
||||
if (GetTarget() == nullptr || !GetTarget()->IsNPC())
|
||||
return;
|
||||
|
||||
if (!zone->CanDoCombat()) {
|
||||
Message(13, "You cannot taunt in a no combat zone.");
|
||||
return;
|
||||
}
|
||||
|
||||
Taunt(GetTarget()->CastToNPC(), false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user