Commit 1e912e01 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents c23f32f5 5a764720
Pipeline #7736 passed with stages
in 90 minutes and 48 seconds
......@@ -3631,7 +3631,7 @@ ygopro.ctos_follow 'UPDATE_DECK', true, (buffer, info, client, server, datas)->
ygopro.stoc_send_chat(client, "${deck_incorrect_reconnect}", ygopro.constants.COLORS.RED)
return false
else
if settings.modules.athletic_check.enabled and settings.modules.athletic_check.banCount
if room.arena and settings.modules.athletic_check.enabled and settings.modules.athletic_check.banCount
athleticCheckResult = await athleticChecker.checkAthletic({main: buff_main, side: buff_side})
if athleticCheckResult.success
if athleticCheckResult.athletic and athleticCheckResult.athletic <= settings.modules.athletic_check.banCount
......
......@@ -4850,7 +4850,7 @@
return false;
}
} else {
if (settings.modules.athletic_check.enabled && settings.modules.athletic_check.banCount) {
if (room.arena && settings.modules.athletic_check.enabled && settings.modules.athletic_check.banCount) {
athleticCheckResult = (await athleticChecker.checkAthletic({
main: buff_main,
side: buff_side
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment