버그 수정

This commit is contained in:
2020-05-19 00:18:45 +09:00
parent f66e56f4b5
commit 6ff5cc90f1
+11 -5
View File
@@ -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){