Add /pet hold on and /pet hold off support for UF/RoF

This commit is contained in:
Michael Cook (mackal)
2013-09-13 15:20:45 -04:00
parent fdb6f0fe84
commit d119ed058b
5 changed files with 33 additions and 0 deletions
+16
View File
@@ -7169,6 +7169,22 @@ void Client::Handle_OP_PetCommands(const EQApplicationPacket *app)
}
break;
}
case PET_HOLD_ON: {
if (GetAA(aaPetDiscipline) && mypet->IsNPC() && !mypet->IsHeld()) {
if (mypet->IsFeared())
break; //could be exploited like PET_BACKOFF
mypet->Say_StringID(MT_PetResponse, PET_ON_HOLD);
mypet->WipeHateList();
mypet->SetHeld(true);
}
break;
}
case PET_HOLD_OFF: {
if (GetAA(aaPetDiscipline) && mypet->IsNPC() && mypet->IsHeld())
mypet->SetHeld(false);
break;
}
case PET_NOCAST: {
if(GetAA(aaAdvancedPetDiscipline) == 2 && mypet->IsNPC()) {
if (mypet->IsFeared())