diff --git a/game-server/app/servers/battle/handler/donateHandler.ts b/game-server/app/servers/battle/handler/donateHandler.ts index eeef4c130..ed5202f3d 100644 --- a/game-server/app/servers/battle/handler/donateHandler.ts +++ b/game-server/app/servers/battle/handler/donateHandler.ts @@ -77,7 +77,7 @@ export class DonationHandler { let { boxRewards, fund } = getArmyDonateBoxBaseById(id); let { donateFund, donationLv } = await getDonation(code, serverId); let { boxRewardRatio, requireRewardRatio } = getArmyDonateBaseByLv(donationLv); - if (donateFund < fund * (100 + requireRewardRatio) ) + if (donateFund < Math.floor(fund * (100 + requireRewardRatio)/100) ) return resResult(STATUS.GUILD_DONATE_BOXS_NOT_GOT); boxRewards = boxRewards.map(({id, count})=>{ return { id, count: count * (boxRewardRatio + 100) };