PetTracker

PetTracker

13M Downloads

Lua Errors

Kodiak1965 opened this issue · 1 comments

commented

Which software were you running? Windows 11 Home

  • Addon version name: PetTracker
  • Client used: [e.g. Vanilla 1.14.4, Retail PTR x.x.x, etc] Retail

Have you read the changelog?
Mark if read.

Please describe the bug.
A clear and concise description of what the bug is.

Please describe how to reproduce it.

  1. Go to '...' Certain Frog type battle pets in the wild cause a Lua Error. The one I'm reporting right now is a Subterranean Dartswog. I believe there are others but didn't keep track. I will start now and add as I find them.
  2. Click on '....' Just starting the fight mainly causes it, but sometimes when you click to change pets it happens
  3. Scroll down to '....'
  4. See error

Any Screenshots?
wow PetTracker Lua Error

If applicable, please add screenshots to help explain your problem.

Error Logs are Important!
Type /console scriptErrors 1 in the chat and reload the game. If an error window appears when reproducing the bug, please write here the first message (labelled 1/Many) that appeared. ⚠️ By default, the last error message is shown, not the first! You need to navigate back to the first error.

commented

Just started another pet battle. Was working as intended when I clicked on the Switch Pet button and got a Lua Error. Looked at the other pets and the Subterranean Dartswog was one of the other battle pets on the enemy team. Something is going on with that battle pet that causes the error. If I find another frog that does this will add to post.

Here is the LUA Error
Message: .../PetTracker/addons/main/classes/abstract/ability.lua:17: Usage: GetAttackModifier(attackType, defenseType)
Time: Sat Oct 19 15:48:09 2024
Count: 1
Stack: .../PetTracker/addons/main/classes/abstract/ability.lua:17: Usage: GetAttackModifier(attackType, defenseType)
[string "@Interface/AddOns/PetTracker/addons/main/classes/abstract/ability.lua"]:17: in function GetModifier' [string "@Interface/AddOns/PetTracker/addons/main/classes/combat/abilityButton.lua"]:27: in function Display'
[string "@Interface/AddOns/PetTracker/addons/main/classes/combat/petSlot.lua"]:72: in function Display' [string "@Interface/AddOns/PetTracker/addons/battle/switcher.lua"]:78: in function UpdateFor'
[string "@Interface/AddOns/PetTracker/addons/battle/switcher.lua"]:69: in function Update' [string "@Interface/AddOns/PetTracker/addons/battle/switcher.lua"]:28: in function PetBattlePetSelectionFrame_Show'
[string "@Interface/AddOns/Blizzard_PetBattleUI/Blizzard_PetBattleUI.lua"]:197: in function `PetBattleFrame_PetSelectionFrameUpdateVisible'
[string "*Blizzard_PetBattleUI.xml:1496_OnClick"]:2: in function <[string "*Blizzard_PetBattleUI.xml:1496_OnClick"]:1>

Locals: self =

{
requisite = false
id = 931
certain = true
pet =
{
}
cooldown = false
}
target =
{
index = 1
owner = 1
}
_ = 931
_ = "Croak"
icon = 804966
_ = 0
_ = "Your critical strike chance has been reduced by [abs(abilityStateMod(40,520))]%."
_ = 1
type = nil
healing = false