Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Jul 22, 2022
1 parent 1580d0a commit cab6a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/apfcritandfumble.lua
Expand Up @@ -21,7 +21,7 @@ local function kelSpell(rRoll)
end

-- Check if Advanced Effects is loaded and whether the attack has a Weapon attached
local function advEffectsSpell(rSource, rRoll)
local function advEffectsSpell(rSource)
return AdvancedEffects and not rSource.nodeWeapon
end

Expand All @@ -32,7 +32,7 @@ local function attackType(rSource, rRoll)
return "Natural";
end
end
if kelSpell(rRoll) or advEffectsSpell(rSource, rRoll) then
if kelSpell(rRoll) or advEffectsSpell(rSource) then
return "Magic";
elseif string.match(rRoll.sDesc, "%[ATTACK.*%((%w+)%)%]") == "R" then
return "Ranged";
Expand Down

0 comments on commit cab6a89

Please sign in to comment.