Skip to content

Commit

Permalink
bugfix in stand method when variable is an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Deysh committed Dec 21, 2023
1 parent 041faed commit 1318517
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/bigshot.lic
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- added boundary return if character ends up outside hunting area
- added option to double cast on fog options when returning from the Rift
- added support for warcry holler buff
- fixed bug in stand method when command is an array
- removed change log comments before 5.0.0 and updated wiki
v5.2.2 (2023-11-21)
- bugfix causing bs_wander to delay 0.5 seconds longer than needed
Expand Down Expand Up @@ -4156,7 +4157,7 @@ class Bigshot

def stand(stand_command = nil)
echo "stand" if $bigshot_debug
return if (stand_command =~ /^(?:fire|kneel|hide)/i && kneeling? && checkleft =~ /^(?:arbalest|kut'ziko|crossbow|kut'zikokra)$/)
return if Array(stand_command).any? { |cmd| cmd =~ /^(?:fire|kneel|hide)/i } && kneeling? && checkleft =~ /^(?:arbalest|kut'ziko|crossbow|kut'zikokra)$/)

until (standing?)
return unless checkroom('Ooze, Innards').nil?
Expand Down Expand Up @@ -4751,6 +4752,7 @@ class Bigshot
break if should_flee?
break if should_rest?
break if !($bigshot_bandits) && @PRIORITY && !priority(target)
break if @event_stack.any? { |a| a.type == :PREP_REST }

group_status_ailments() if @TROUBADOURS_RALLY && Spell[1040].known?
stand(i) if !standing?
Expand Down

0 comments on commit 1318517

Please sign in to comment.