From 1b56aa545664470689ae6fe85c173a1c33ac1f90 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 14 Jun 2022 20:11:06 +0800 Subject: [PATCH] 1 --- webapp/controller/HeroController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 7ebd1e49..3f31c348 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -227,7 +227,8 @@ class HeroController extends BaseAuthedController { if ($currQualityMeta) { $nextQualityMeta = mt\HeroQuality::getByQuality($heroDb['quality'] + 1); if ($nextQualityMeta) { - $rnd = rand(1, 100); + //$rnd = rand(1, 100); + $rnd = 1000; if ($rnd > $nextQualityMeta['success_rate']) { Hero::update($costHeroUniId, array(