Skip to content

Commit

Permalink
Crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 1, 2024
1 parent bee6a26 commit 2926972
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1258,12 +1258,12 @@ end

function Utils.DetAACheck(aaId)
if Utils.GetTargetID() == 0 then return false end
local Target = mq.TLO.Target
local Me = mq.TLO.Me
local target = mq.TLO.Target
local me = mq.TLO.Me

return (not Target.FindBuff("id " .. tostring(Me.AltAbility(aaId).Spell.ID())).ID() and
not Target.FindBuff("id " .. tostring(Me.AltAbility(aaId).Spell.Trigger(1).ID()))) and
(Me.AltAbility(aaId).Spell.StacksTarget() or Me.AltAbility(aaId).Spell.Trigger(1).StacksTarget())
return (not target.FindBuff("id " .. tostring(me.AltAbility(aaId).Spell.ID())).ID() and
not target.FindBuff("id " .. tostring(me.AltAbility(aaId).Spell.Trigger(1).ID()))) and
(me.AltAbility(aaId).Spell.StacksTarget() or me.AltAbility(aaId).Spell.Trigger(1).StacksTarget())
end

function Utils.SetLoadOut(caller, t, itemSets, abilitySets)
Expand Down

0 comments on commit 2926972

Please sign in to comment.