버그 수정

This commit is contained in:
2020-07-15 02:43:00 +09:00
parent dc000cecf1
commit edbc2b88b6
2 changed files with 2 additions and 2 deletions
@@ -35,7 +35,7 @@ class event_전투특기_공성 extends \sammo\BaseItem{
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if(\sammo\Util::starts_with($statName, 'dex')){
$myArmType = 'dex'.GameUnitConst::T_CASTLE;
$myArmType = 'dex'.GameUnitConst::T_SIEGE;
$opposeArmType = 'dex'.$aux['opposeType']->armType;;
if($aux['isAttacker'] && $opposeArmType === $statName){
return $value + $general->getVar($myArmType);
+1 -1
View File
@@ -36,7 +36,7 @@ class che_공성 extends \sammo\BaseSpecial{
public function onCalcStat(General $general, string $statName, $value, $aux=null){
if(\sammo\Util::starts_with($statName, 'dex')){
$myArmType = 'dex'.GameUnitConst::T_CASTLE;
$myArmType = 'dex'.GameUnitConst::T_SIEGE;
$opposeArmType = 'dex'.$aux['opposeType']->armType;;
if($aux['isAttacker'] && $opposeArmType === $statName){
return $value + $general->getVar($myArmType);