Skip to content

Commit

Permalink
Merge pull request #6709 from MahtraDR/stack_scrolls_exact_discard
Browse files Browse the repository at this point in the history
[scripts][stack-scrolls] Exact spell name matches for discards
  • Loading branch information
MahtraDR authored Sep 28, 2023
2 parents afb75b3 + f93d54e commit b77c699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack-scrolls.lic
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class ScrollStack
end
waitrt?

if @discard_scrolls.find { |discard| spell_name =~ /#{discard}/i }
if @discard_scrolls.find { |discard| spell_name == discard }
DRCI.dispose_trash(scroll, @worn_trashcan, @worn_trashcan_verb)
elsif (target = UserVars.stackers.find { |stacker| stacker['contents'].find { |data| data.first == spell_name } })
stack_existing_scroll(target, scroll, spell_name, stacker_container)
Expand Down

0 comments on commit b77c699

Please sign in to comment.