Cancel Pet Fight
Prompts about canceling the current pet battle/duel if no rare pet is found on the opposing team. Useful when trying to catch only rare (blue) pets.
There are no settings. Simply start a pet battle. If there are no rare pets in the opposing team, there will be a prompt asking you to continue or cancel the fight. Simply pressing "Escape" on your keyboard, or "Cancel" in the dialogue menu will cancel the pet battle.
Unfortunately the "Cancel" function requires a hardware event and can't be automatically fired.
Commands
- /cpf chat - toggles printing the current opposing team to chat
- /cpf popup - toggles between the old mode (displaying a pop-up) or the new overlay mode (new overlay mode is by default)
- /cpf mark - toggle the raid marking option
- Shift+Clicking the Forfeit button on the PetBattle UI will immediately cancel the battle without any confirmation!
Since tickets isn't enabled, I'll post here..
If you are in a raid, {circle} isn't set on pets you have cancelled a fight on. Even when you are Assistant (or higher) in the raid, and thus have permission to set icons..
I'm in a rather small guild, so when officers are trying to pug the last people for raid, I usually battle pets, but as said, CPF can't set icons, even though I have permission :(
TY for the update. I love the new changes but could you reverse the click option? I mean use right-click to cancel and click anywhere to continue.
The reason is that the new changes in Pet Battles system where if you cancel/forfeit a fight, your team recieves some damage as if they fought and ran away.
You can't just cancel/forfeit like a boss anymore if the team you are fighting didn't have the pet you wanted to capture.
As the message says (on the last line) you can do /cpf popup to switch back to pop-up (old) mode of presenting the information/cancelation.
Just keep in mind that this method can cause Taints upon talent changes (altough I doubt you will run into them, as that issue seems to have been fixed by Blizzard in 5.2)
Gotta say I'm not fond of the new interface, where clicking anywhere *cancels* the battle. If I've started a fight with a very rare pet (minfernal), I don't care if it's uncommon, or sometimes even common or poor -- I still want to get one. Oftentimes when I start the pet battles, I immediately click to pan my camera to see the fight better -- which is ending up in me inadvertently canceling the battles now.
I liked it better when pressing ESC or clicking Cancel canceled the battle, or you could click Keep Fighting to keep fighting. Maybe add Spacebar and Enter as "Keep Fighting" keys, or somehow make it configurable?
As the message says (on the last line) you can do /cpf popup to switch back to pop-up (old) mode of presenting the information/cancelation.
Just keep in mind that this method can cause Taints upon talent changes (altough I doubt you will run into them, as that issue seems to have been fixed by Blizzard in 5.2).
Thank you -- didn't see that option mentioned (all I see in the description is "/cfp chat - toggles printing the current opposing team to chat"). Either way, a fantastic option to have :)
Thanks again!
Great addon and I use it everyday too! Could you make it so that pressing return/enter (or any other key) would close the prompt to can cel window and continue the pet battle? Just saves the time having to move the mouse to click continue :)
Press Escape :)
EDIT: I just realized now how I've completely missed the point of your question. If you download the alpha release, I've already done such a thing that completely changes the way the pop-up dialogue is displayed. This method also changes the way you dismiss/continue the pet battle.
Download the Alpha and give it a try. The new method should be set by default.
TY, I will try that. BTW, the description above need to be updated. It still says "Cancel" when it already has changed to "Keep Fighting" :)
Will do it as soon as I can. Description & Screenshots are the last thing I'm thinking about when updating stuff as it's kind of a tedious process.
@NLGill
I haven't changed the addon since Nov. 28 (you can see that on the sidebar), so not sure what to tell you.
started getting this error in the last few days:
[ADDON_ACTION_BLOCKED] AddOn "cancel-pet-fight" tried to call the protected function "ForfeitGame()". !BugGrabber-r188\BugGrabber.lua:587: in function <!BugGrabber\BugGrabber.lua:587> <in C code> cancel-pet-fight\cancel-pet-fight-r24-release.lua:15: in function "OnCancel" FrameXML\StaticPopup.lua:4038: in function "StaticPopup_HideExclusive" FrameXML\StaticPopup.lua:3384: in function "StaticPopup_Show" cancel-pet-fight\cancel-pet-fight-r24-release.lua:39: in function <cancel-pet-fight\cancel-pet-fight.lua:23>
Locals: nil
I really like the addon so far, but would really love the ability to prompt for cancel if no upgrades are found during that battle (similar to tonythecoollector's 2nd request from 10/27 below). The addon has saved me countless hours of running around hunting for rares, and I look forward to using it for a long time to come. :D
The problem with implementing such a feature is that the addon will grow from it's simplistic under-100-lines code to a huge "mammoth" of code, because I will most likely need to implement extra libraries of code just for that feature.
Also, you will need a way to define what an upgrade is. Do you consider an upgrade if you find a pet with higher speed than yours? higher hp? higher attack power?
Not sure if it's another mod that I use, or if it's the new default [edit: it's PetTracker, I think], but each time I battle a pet that I don't have, (or if the rarity is better than mine), it puts an exclamation on that battle pet's portrait, and a tooltip (annoyimngly, that I can't fighure out how to turn off) pops up under the enemy team.
Another thing that came to mind was the Master Pet Battlers, the addon goes off when their pets are loaded, since they are often Uncommon. Would there be a way for the addon to know either the pet or trainers' names, so that it wouldn't trigger when fighting them?
That's an idea I had for a while but couldn't figure out a simple implementation. If you've been in a PvP battle, you may have noticed that you don't get the prompt there, because the game clearly defines when it's a pvp battle. The game unfortunately doesn't specify when it's a tamer, but the name idea is interesting and I'll think about it.
Hello,
I like the Addon very much, but I don´t need the Info about the quality of the pet at the chat. How can I stop this?
I will soon add an option for this.
EDIT: Done. Use /cpf chat to turn it on/off. Defaults to on.
Thank you very much! :o)
hello again,
at start of every battle is printed to chat info: Pets in the opposing team: pet names colored by their quality, its nice but can you please add print also my pets compare to oppoenets, so i will immedietly show that i have for example pet2 just in white but there is in green quality.
thanks
tony