Pet Battle Scripts

Pet Battle Scripts

265k Downloads

self.【ability(YYY).XXX】YYY cannot be input correctly, a BUG will be prompted.

tianqinan opened this issue · 1 comments

commented

ability(奥术风暴)[!weather(奥术之风)]
ability(奥术风暴)[ weather(奥术之风) & weather(奥术之风).duration < 3 & self.ability(法力澎湃).duration <= 1]
ability(法力澎湃)[weather(奥术之风)]
ability(奥术风暴)[ self.ability(奥术风暴).strong]
ability(#1) [ self.ability(#1).strong]
ability(奥术风暴)[ self.ability(#1).weak]
ability(#1) [ self.ability(奥术风暴).weak]
ability(奥术风暴)[enemy(#1).dead & enemy(#2).dead & !self.ability(奥术风暴).weak]
ability(#1)
QQ20240923-012946

Interface/AddOns/tdBattlePetScript/
Core/Util.lua:73: bad argument #1 to
max'(number expected, got nil)

commented

This really should never happen, honestly.

  • What fight does it happen on?
  • Are you able to reproduce it consistently or did it happen once and never again? If yes, please get to the point of error happening and run /run print("---")local o,s,a;for o=1,2 do for s=1,3 do for a=1,3 do print(o,s,C_PetBattles.GetPetSpeciesID(o,s),a,C_PetBattles.GetAbilityInfo(o,s,a),C_PetBattles.GetAbilityState(o,s,a))end end end, screenshot/copy the data shown in your chat window
  • If you can't reproduce it, do you have a PetBattleLogKeeper log for that fight?