Skip to content

Commit

Permalink
Merge pull request #7069 from mdr55/necro-fix
Browse files Browse the repository at this point in the history
[script][combat-trainer] minor necro fix - sequencing issue
  • Loading branch information
MahtraDR authored Jan 22, 2025
2 parents 0967af5 + c14738c commit 3b0a717
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,6 @@ class LootProcess

if ritual.eql?('butcher')
butcher_corpse(mob_noun, ritual, game_state)

@last_ritual = ritual
echo "Last ritual performed: #{@last_ritual}" if $debug_mode_ct
return
end
Expand Down Expand Up @@ -821,6 +819,7 @@ class LootProcess
loop do
result = DRC.bput("perform #{ritual} on #{mob_noun}", @rituals['butcher'], @rituals['failures'], @rituals['construct'])
game_state.construct(mob_noun) if result.include?(@rituals['construct'])
@last_ritual = 'butcher' if result.include?(@rituals['butcher'])
break if result.empty? || @rituals['failures'].any? { |msg| result.include?(msg) || result.include?(@rituals['construct']) }

DRC.bput("drop my #{DRC.right_hand}", 'You drop', 'You discard', 'Please rephrase')
Expand Down

0 comments on commit 3b0a717

Please sign in to comment.