WC: fix #7921 Random training per scenario

a free random training on easier difficulties should only be given in the first scenario. (Otherwise they'll accumulate to 5 free trainings at scenario 5.)
This commit is contained in:
gfgtdf 2023-10-16 23:25:13 +02:00 committed by GitHub
parent b13406c63e
commit 8bbaba898d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,6 @@ on_event("wc2_start", function(cx)
side = side_num
}
end
end
if wml.variables.wc2_difficulty.extra_training then
for side_num = 1, wml.variables.wc2_player_count do
@ -80,6 +79,7 @@ on_event("wc2_start", function(cx)
}
end
end
end
local gold = (wml.variables.wc2_carryover or 0) + (wml.variables["wc2_difficulty.extra_gold"] or 0)
for i = 1, wml.variables.wc2_player_count do