1
0
mirror of synced 2025-01-30 19:53:47 +01:00

fix give meter bug when playcount still 0

This commit is contained in:
ghkkk090 2022-09-11 08:21:42 +07:00
parent d22d98fad2
commit 4f275d383f

View File

@ -193,7 +193,7 @@ export default class GameModule extends Module {
let giveMeterReward = Config.getConfig().gameOptions.giveMeterReward; let giveMeterReward = Config.getConfig().gameOptions.giveMeterReward;
// Check if this feature activated and check if user's play count is n*100 play // Check if this feature activated and check if user's play count is n*100 play
if(giveMeterReward === 1 && body.playCount % 100 === 0) if(giveMeterReward === 1 && body.playCount % 100 === 0 && body.playCount !== 0)
{ {
// Calling give meter reward function (BASE_PATH/src/util/meter_reward.ts) // Calling give meter reward function (BASE_PATH/src/util/meter_reward.ts)
await meter_reward.giveMeterRewards(body); await meter_reward.giveMeterRewards(body);