Skip to content

Commit

Permalink
Make PEN a little more useful by removing obstacle check
Browse files Browse the repository at this point in the history
  • Loading branch information
brightrim committed Feb 13, 2025
1 parent 1c29fe7 commit 35a7914
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion magic/arcane/castSpell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ local function checksPassed(user, spell, element, thePosition)
return false
end

if range.checkForObstacles(user, spell, element, thePosition) then
local PEN = runes.checkSpellForRuneByName("PEN", spell)

if not PEN and range.checkForObstacles(user, spell, element, thePosition) then
user:inform(myTexts.sight.german, myTexts.sight.english)
return false
end
Expand Down

0 comments on commit 35a7914

Please sign in to comment.