I'm not sure what is causing it or where it came from, but it started poping up on my characters a few days ago.
Code:
9x <string>:"Death and Respawn Check":51: attempt to index field "states" (a nil value)
<string>:"Death and Respawn Check":51: in function "DeathAndRespawnCheck"
<string>:"Display Damage":23: in function "SetHealth"
<string>:"Init Player Team":283: in function "InitPet"
<string>:"Init Player Team":184: in function "InitTeam"
<string>:"PetBattle - 0. Init and Main Loop":55: in main chunk
Locals:
pet = <table> {
deathAnimKit = <userdata>
sessile = false
createData = <table> {
}
auras = <table> {
}
playerID = 2
teamFacing = 180
turnRate = 15
slot = 1
moveSpeed = 5
xp = 0
currentOffset = 0
currentHealth = -55
isPet = true
level = 17
health = -55
restoreHoverHeight = 0
actor = <userdata>
displayID = 8971
creatureID = 61328
currentRadius = 4
}
newHealth = -55
dontDraw = true
flags = nil
oldHealth = nil
change = 0
(*temporary) = 0