From 8a1641fbfa80c4da79b67eaee8ea778e90a83439 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 21 Aug 2018 11:04:27 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EA=B3=A0=20=EB=B0=A9=EC=8B=9D=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/WarUnitGeneral.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/hwe/sammo/WarUnitGeneral.php b/hwe/sammo/WarUnitGeneral.php index 641804f0..2193f9e6 100644 --- a/hwe/sammo/WarUnitGeneral.php +++ b/hwe/sammo/WarUnitGeneral.php @@ -223,15 +223,6 @@ class WarUnitGeneral extends WarUnit{ $opposeWarPowerMultiply *= 0.8; } } - else if($specialWar == 62){ - if ($this->isAttacker) { - $opposeWarPowerMultiply *= 0.9; - } - else{ - $myWarPowerMultiply *= 1.1; - } - - } else if($specialWar == 75){ $opposeCrewType = $this->oppose->getCrewType(); if($opposeCrewType->reqCities || $opposeCrewType->reqRegions){ @@ -529,6 +520,12 @@ class WarUnitGeneral extends WarUnit{ $activated = true; } + if($specialWar == 62){ + $oppose->activateSkill('필살불가'); + $oppose->activateSkill('계략약화'); + $activated = true; + } + return $activated; } @@ -547,6 +544,7 @@ class WarUnitGeneral extends WarUnit{ if( !$this->hasActivatedSkill('특수') && + !$this->hasActivatedSkill('필살불가') && Util::randBool($this->getComputedCriticalRatio()) ){ $this->activateSkill('특수', '필살시도', '필살'); @@ -584,6 +582,9 @@ class WarUnitGeneral extends WarUnit{ if($specialWar == 44){ $magicSuccessRatio += 1; } + if($this->hasActivatedSkill('계략약화')){ + $magicSuccessRatio -= 0.2; + } if($oppose instanceof WarUnitCity){ $magic = Util::choiceRandom(['급습', '위보',' 혼란']);