From 936f069ac30bce728fb4f094fb0bd5ec39b535dc Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 21 Aug 2018 10:47:47 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EA=B7=B9=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=8B=9C=20=EB=B6=80=EC=83=81=20=EC=A0=95=EB=8F=84=20=EC=95=BD?= =?UTF-8?q?=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/WarUnitGeneral.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hwe/sammo/WarUnitGeneral.php b/hwe/sammo/WarUnitGeneral.php index 1cf3a697..641804f0 100644 --- a/hwe/sammo/WarUnitGeneral.php +++ b/hwe/sammo/WarUnitGeneral.php @@ -387,9 +387,10 @@ class WarUnitGeneral extends WarUnit{ !$this->hasActivatedSkill('저격') && Util::randBool(1/5) ){ - $itemActivated = true; - $itemConsumed = true; - $this->activateSkill('저격'); + //수극 + $itemActivated = true; + $itemConsumed = true; + $this->activateSkill('저격', '수극'); } if($itemConsumed){ @@ -414,7 +415,13 @@ class WarUnitGeneral extends WarUnit{ $this->getLogger()->pushGeneralActionLog("상대에게 저격당했다!", ActionLogger::PLAIN); $this->getLogger()->pushGeneralBattleDetailLog("상대에게 저격당했다!", ActionLogger::PLAIN); - $this->increaseVarWithLimit('injury', Util::randRangeInt(20, 60), null, 80); + if($oppose->hasActivatedSkill('수극')){ + $this->increaseVarWithLimit('injury', Util::randRangeInt(20, 40), null, 80); + } + else{ + $this->increaseVarWithLimit('injury', Util::randRangeInt(20, 60), null, 80); + } + } return $result;