atperry7 / pup_gearswap

A work in progress gearswap for windower.
https://www.ffxiah.com/forum/topic/53071/pup-gearswap-testers-needed/
11 stars 12 forks source link

nil variable 'modif' #8

Closed Icydeath closed 5 years ago

Icydeath commented 5 years ago

Gearswap throws a nil variable error on modif in function job_aftercast. add_to_chat(392,"*-*-*-*-*-*-*-*-* [ " .. pet.name .. " is about to " .. ws .. " (" .. modif .. ") ] *-*-*-*-*-*-*-*-*")

As a quick fix so I don't see the error anymore, I wrapped it in a nil check.

if modif ~= nil then add_to_chat(392,"*-*-*-*-*-*-*-*-* [ " .. pet.name .. " is about to " .. ws .. " (" .. modif .. ") ] *-*-*-*-*-*-*-*-*") end

atperry7 commented 5 years ago

Good find. I updated that section to now also default to a standard Weapon Skill set if it is unable to find the modif Weapon Skill set as well.

New update I just pushed also includes a lock timer for the pet weapon skill gear too. 👍

Icydeath commented 5 years ago

Awesome! Keep up the good work sir!