From a6f668002eaefb692c46412eef3287c09ed3a651 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 15 Jun 2022 13:43:31 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 9071ebdd..17f636db 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -227,8 +227,8 @@ class HeroController extends BaseAuthedController { if ($currQualityMeta) { $nextQualityMeta = mt\HeroQuality::getByQuality($heroDb['quality'] + 1); if ($nextQualityMeta) { - //$rnd = rand(1, 100); - $rnd = 1000; + $rnd = rand(1, 100); + //$rnd = 1000; if ($rnd > $nextQualityMeta['success_rate']) { Hero::update($costHeroUniId, array(