1
0
mirror of synced 2025-01-29 19:27:28 +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;
// 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)
await meter_reward.giveMeterRewards(body);