Skip to content

Commit

Permalink
Merge pull request #6892 from mikejcook/combat_trainer_gs_escape
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR authored Aug 17, 2024
2 parents ca5bd72 + 65addcd commit 90683e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,13 @@ class SpellProcess

return unless @command

pause 0.5 until DRRoom.npcs.include?('warrior')
# escape valve in case spell immediately fails (due to anti magic?)
temp_count = 0
until DRRoom.npcs.include?('warrior') || temp_count > 20
pause 0.5
temp_count += 1
end

fput("command #{@command}")
@command = nil
end
Expand Down

0 comments on commit 90683e2

Please sign in to comment.