Skip to content

Commit 9cab690

Browse files
authored
Update combat-trainer.lic
1 parent 27efb46 commit 9cab690

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

combat-trainer.lic

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4314,7 +4314,7 @@ class GameState
43144314
end
43154315

43164316
@last_exp = -1
4317-
@no_gain_list = Hash.new
4317+
@no_gain_list = Hash.new(0)
43184318
@weapons_to_train.each { |skill_name, _weapon_name| @no_gain_list[skill_name] = 0 }
43194319
echo(" @no_gain_list: #{@no_gain_list}") if $debug_mode_ct
43204320

@@ -4828,8 +4828,8 @@ class GameState
48284828
echo("skill exp: #{current_exp} vs #{@target_weapon_skill}") if $debug_mode_ct
48294829

48304830
# gain_check code: logic to account for a skill that is not gaining any MS at all
4831-
if @gain_check then
4832-
if (current_exp <= @last_exp) && (current_exp != 34) then
4831+
if @gain_check && (weapon_skill != nil) then
4832+
if (current_exp <= @last_exp) && (current_exp != 34) && (@weapons_to_train.size > 1) then
48334833
@no_gain_list[weapon_skill] += 1
48344834
else
48354835
@no_gain_list[weapon_skill] = 0

0 commit comments

Comments
 (0)