Skip to content

Commit

Permalink
Luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
rhagelstrom committed Jan 22, 2025
1 parent 6d96865 commit ace644a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion campaign/scripts/power_item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ function onDisplayChanged()
end
if sDisplayMode == 'summary' then
header.subwindow.button_abjuration.setVisible(false);
elseif (sDisplayMode == 'action' or sDisplayMode == 'combat') and bProcess and (aCastInfo.bSpellcasting or aCastInfo.bPactMagic) and aCastInfo.nLevel > 0 then
elseif (sDisplayMode == 'action' or sDisplayMode == 'combat') and bProcess and
(aCastInfo.bSpellcasting or aCastInfo.bPactMagic) and aCastInfo.nLevel > 0 then
setCastButton(aCastInfo);
else
header.subwindow.button_abjuration.setVisible(false);
Expand Down
4 changes: 2 additions & 2 deletions scripts/arcane_ward.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ function parseArcaneWard(rActor)
if StringManager.isWord(aWords[i], 'equal') and StringManager.isWord(aWords[i + 1], 'to') and
StringManager.isWord(aWords[i + 2], 'twice') and StringManager.isWord(aWords[i + 3], 'your') then
aAWParsed['class'] = aWords[i + 4];
elseif (StringManager.isWord(aWords[i], '+') or StringManager.isWord(aWords[i], 'plus')) and StringManager.isWord(aWords[i + 1], 'your') and
StringManager.isWord(aWords[i + 3], 'modifier') then
elseif (StringManager.isWord(aWords[i], '+') or StringManager.isWord(aWords[i], 'plus')) and
StringManager.isWord(aWords[i + 1], 'your') and StringManager.isWord(aWords[i + 3], 'modifier') then
aAWParsed['modifier'] = aWords[i + 2];
end
i = i + 1;
Expand Down

0 comments on commit ace644a

Please sign in to comment.