diff --git a/configs/config.ini b/configs/config.ini index ba9bae9..5957398 100644 --- a/configs/config.ini +++ b/configs/config.ini @@ -29,5 +29,5 @@ play_public_key= # Request action by request query use_request_query_action=FALSE -# Raid boss rewarding delay (Default is 300 seconds = 5 minutes) -raid_boss_rewarding_delay=300 \ No newline at end of file +# Raid boss rewarding delay (Default is 300 seconds or 5 minutes) +raid_boss_rewarding_delay=300 diff --git a/functions/RaidBoss.php b/functions/RaidBoss.php index 4d73ff4..2b1318f 100644 --- a/functions/RaidBoss.php +++ b/functions/RaidBoss.php @@ -61,7 +61,7 @@ function RaidEventRewarding() { $gameData = \Base::instance()->get('GameData'); $currentTime = time(); - $endTime = $currentTime - $f3->get('raid_boss_rewarding_delay'); + $endTime = $currentTime - \Base::instance()->get('raid_boss_rewarding_delay'); $raidEventDb = new RaidEvent(); $raidEvents = $raidEventDb->find(array( 'endTime <= ? AND rewarded = 0',