Skip to content

Commit

Permalink
- AA Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Mar 9, 2024
1 parent 98cb073 commit a1309d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '09b658e 2024-03-09' }
return { commitId = '98cb073 2024-03-09' }
4 changes: 2 additions & 2 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ end
---@return boolean
function RGMercUtils.CanUseAA(aaName)
local haveAbility = mq.TLO.Me.AltAbility(aaName)()
local levelCheck = mq.TLO.Me.AltAbility(aaName).MinLevel() <= mq.TLO.Me.Level()
local rankCheck = mq.TLO.Me.AltAbility(aaName).Rank() > 0
local levelCheck = haveAbility and mq.TLO.Me.AltAbility(aaName).MinLevel() <= mq.TLO.Me.Level()
local rankCheck = haveAbility and mq.TLO.Me.AltAbility(aaName).Rank() > 0
RGMercsLogger.log_verbose("CanUseAA(%s): haveAbility(%s) levelCheck(%s) rankCheck(%s)", aaName, RGMercUtils.BoolToColorString(haveAbility),
RGMercUtils.BoolToColorString(levelCheck), RGMercUtils.BoolToColorString(rankCheck))
return haveAbility and levelCheck and rankCheck
Expand Down

0 comments on commit a1309d7

Please sign in to comment.