From 6ff5cc90f1fee924a346594adae08a2e32a4620b Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 19 May 2020 00:18:45 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/SpecialityHelper.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/hwe/sammo/SpecialityHelper.php b/hwe/sammo/SpecialityHelper.php index e1930c81..329f9622 100644 --- a/hwe/sammo/SpecialityHelper.php +++ b/hwe/sammo/SpecialityHelper.php @@ -86,9 +86,6 @@ class SpecialityHelper{ if($leadership > GameConst::$chiefStatMin){ $myCond |= self::STAT_LEADERSHIP; } - if($leadership < GameConst::$chiefStatMin){ - $myCond |= self::STAT_NOT_LEADERSHIP; - } if($strength >= $intel * 0.95 && $strength > GameConst::$chiefStatMin){ $myCond |= self::STAT_STRENGTH; @@ -100,8 +97,17 @@ class SpecialityHelper{ if($intel >= $strength * 0.95 && $intel > GameConst::$chiefStatMin){ $myCond |= self::STAT_INTEL; } - if($intel < GameConst::$chiefStatMin){ - $myCond |= self::STAT_NOT_INTEL; + + if($myCond){ + if($leadership < GameConst::$chiefStatMin){ + $myCond |= self::STAT_NOT_LEADERSHIP; + } + if($strength < GameConst::$chiefStatMin){ + $myCond |= self::STAT_NOT_STRENGTH; + } + if($intel < GameConst::$chiefStatMin){ + $myCond |= self::STAT_NOT_INTEL; + } } if($myCond === 0){