Commit 5a764720 authored by nanahira's avatar nanahira

check in arena only

parent 31e593c7
Pipeline #7737 passed with stages
in 90 minutes and 10 seconds
......@@ -3323,7 +3323,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
......
......@@ -4436,7 +4436,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