ThornyFFXI/LuAshitacast

GetPetAction Nil Values for SMN

Closed this issue · 1 comments

Trying to use gData.GetPetAction() for SMN swaps when using a Blood Pact ability.
Unable to compare Name, Id, or other values as they are nil
image

Lua being used under HandleDefault:

local petAction = gData.GetPetAction();

  if (petAction ~= nil) then
      print("Name: " .. tostring(petAction.Name));
      print("ActionType: " .. tostring(petAction.ActionType));
      print("Type: " .. tostring(petAction.Type));
      print("Id: " .. tostring(petAction.Id));
      HandlePetAction(petAction);
      return;
  else
      gFunc.EquipSet(sets.Idle);
  end

Not sure if I'm doing something wrong with reading the pet action data

Fixed in 1.21.