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!
Please update for SL
Errors while pet battling BFA trainers today
2x cancel-pet-fight\cancel-pet-fight-1.0.3.lua:117: table index is nil
[string "@cancel-pet-fight\cancel-pet-fight-1.0.3.lua"]:117: in function <cancel-pet-fight\cancel-pet-fight.lua:71>
Locals:
frame = <unnamed> {
0 = <userdata>
}
event = "PET_BATTLE_OVER"
arg1 = nil
(*temporary) = <table> {
Creature-0-3137-1642-10770-141588-00000F9D31 = 1
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "table index is nil"
tempGuid = nil
CPF = <table> {
Creature-0-3137-1642-10770-141588-00000F9D31 = 1
}
tempEnabled = true
Please update for BfA!
Any chance of disabling in Pet Battle Scenarios? It cancelled half my battles is Wailing Caverns :/
Error came up during the Ominitron Defense System pet battle fight(twice , each time on different toon):
And a 3rd time on my 3rd toon:
And again:
Message: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-v1.0.1.lua:117: table index is nil
Time: 09/15/17 14:41:23
Count: 1
Stack: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-v1.0.1.lua:117: table index is nil
...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:117: in function <...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:71>
Locals: frame = <unnamed> {
0 = <userdata>
}
event = "PET_BATTLE_OVER"
arg1 = nil
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "table index is nil"
tempGuid = nil
CPF = <table> {
}
tempEnabled = true
Error came up during the Ominitron Defense System pet battle fight(twice , each time on different toon):
And a 3rd time on my 3rd toon:
Message: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-v1.0.1.lua:117: table index is nil
Time: 09/15/17 14:36:01
Count: 1
Stack: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-v1.0.1.lua:117: table index is nil
...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:117: in function <...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:71>
Locals: frame = <unnamed> {
0 = <userdata>
}
event = "PET_BATTLE_OVER"
arg1 = nil
(*temporary) = <table> {
Creature-0-3133-1220-17095-98572-00003BEB4D = 1
Creature-0-3886-1220-7886-99210-00003BEB4D = 1
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "table index is nil"
tempGuid = nil
CPF = <table> {
Creature-0-3133-1220-17095-98572-00003BEB4D = 1
Creature-0-3886-1220-7886-99210-00003BEB4D = 1
}
tempEnabled = true
Error came up during the Ominitron Defense System pet battle fight(twice , each time on different toon):
Message: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-v1.0.1.lua:117: table index is nil
Time: 09/15/17 12:26:40
Count: 1
Stack: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-v1.0.1.lua:117: table index is nil
...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:117: in function <...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:71>
Locals: frame = <unnamed> {
0 = <userdata>
}
event = "PET_BATTLE_OVER"
arg1 = nil
(*temporary) = <table> {
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "table index is nil"
tempGuid = nil
CPF = <table> {
}
tempEnabled = true
getting this Error (many times)(:
Message: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-v1.0.1.lua:117: table index is nil
Time: 09/13/17 13:34:39
Count: 1
Stack: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-v1.0.1.lua:117: table index is nil
...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:117: in function <...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:71>
Locals: frame = <unnamed> {
0 = <userdata>
}
event = "PET_BATTLE_OVER"
arg1 = nil
(*temporary) = <table> {
Creature-0-3019-1220-22104-117951-000038991A = 1
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "table index is nil"
tempGuid = nil
CPF = <table> {
Creature-0-3019-1220-22104-117951-000038991A = 1
}
tempEnabled = true
getting this LUA:
Message: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight-r48-release.lua:117: table index is nil
Time: 09/18/16 11:02:37
Count: 1
Stack:
Locals:
Please add support for translation. I would like to translate this Addon.
Hi :) I love Your addon, and especially the auto-mark feature for pets that need to die (*sigh*) in the hunt for blue.
However this function doesn't work when in raid group. Even if I have assist or I am a leader, it doesn't mark the pet automatically (I can mark with keybinds, but addon doesn't do that for me). Is this intended, or a bug?
This is intended so you don't mess up markers while in a raid.
>---
2x cancel-pet-fight\cancel-pet-fight-r44-release.lua:117 table index is nil
cancel-pet-fight\cancel-pet-fight-r44-release.lua:117 in function <cancel-pet-fight\cancel-pet-fight.lua:71
Locals:
>---
No idea what caused it..
Message: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:117: table index is nil
Time: 05/03/15 14:04:27
Count: 3
Stack: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:117: in function <...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:71>
Locals: frame = <unnamed> {
0 = <userdata>
}
event = "PET_BATTLE_OVER"
arg1 = nil
(*temporary) = <table> {
Creature-0-3770-1159-22634-85418-000046135A = 1
Creature-0-3770-1159-22634-84857-000046135A = 1
Creature-0-3770-1159-22634-85685-000046135A = 1
Creature-0-3111-1159-24548-85685-0000460F43 = 1
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "table index is nil"
tempGuid = nil
CPF = <table> {
Creature-0-3770-1159-22634-85418-000046135A = 1
Creature-0-3770-1159-22634-84857-000046135A = 1
Creature-0-3770-1159-22634-85685-000046135A = 1
Creature-0-3111-1159-24548-85685-0000460F43 = 1
}
tempEnabled = true hi this error keeps coming up after pet fight at garrison any help would be appreciated thans
I've been getting the following, mostly after garrison battles and usually if the fight fails.
Date: 2015-01-05 09:56:22
ID: 1
Error occured in: Global
Count: 1
Message: ...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua line 112:
table index is nil
Debug:
[C]: ?
...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:112:
...terface\AddOns\cancel-pet-fight\cancel-pet-fight.lua:68
Locals:
Request: if there is a blue pet (or better if ever implemented), you sometimes have to cancel (for whatever reason). However, sometime, pets are clumped together, making it hard/impossible to spot the correct pet to battle (e.g. after you heal you capture team), because the orang nibble just keeps switching between the pets.
Could it be possible, to have a {Square} set on the pet that actually contained a blue pet, so you can quickly find the correct pet Again?
I agree with Addy; I would love a toggle for this.
I have a simple request (that IS not simple for you)
I would love to be able to turn OFF the clcik to cancle with out having to disable it..
so like either a button on the pet journal.. or option in Interface / Addon.. or even a slash comman..
like /cpf on /cpf off
but still leave the /cfp chat - toggles printing the current opposing team to chat on..
Thanks and I DO love the full screen click to cancle..
This way when I am lvling pets I do not have to click the screen nor do I have to disable the addon..
Thanks for an awesome little addon!
Please add the "/cpf mark" command to the description page here.
And correct the typo that says "/cfp chat" instead of "/cpf chat" on line 8 in same description.
@FuxieDK
That is on purpose disabled so you don't mess up with markers while in a raid group.