Skip to content

Commit

Permalink
correction for finished war detection
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixLusseau committed Apr 11, 2024
1 parent abd464c commit 6e24af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/ffattacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function ffattacks(bot, api, interaction, pingBool, channel, clan, guildID
ratio = await functions.ratio(RiverRace, decksRemaining, -1) // Calculate the ratio
const estimate = Math.floor(ratio) * ((RiverRace.periodType == "colosseum") ? 800 : 200)// Invert of ratio calculation where the points are the unknown value

if (pingBool && interaction == null && points == 0) // When war is finished when the scheduled message is sent
if (pingBool && interaction == null && points == 0 && RiverRace.clan.fame >= 10000) // When war is finished when the scheduled message is sent
{
try {
channel.send("The clan has finished the war !")
Expand Down

0 comments on commit 6e24af6

Please sign in to comment.