[전투] 계략 성공 확률 +20%p'; protected $cost = 100; protected $buyable = true; protected $consumable = false; protected $reqSecu = 3000; public function onCalcDomestic(string $turnType, string $varType, float $value, $aux=null):float{ if(in_array($turnType, ['징병', '모병'])){ if($varType == 'cost' && $aux['armType'] == GameUnitConst::T_WIZARD) return $value * 0.9; } return $value; } public function onCalcStat(General $general, string $statName, $value, $aux=null){ if($statName === 'warMagicSuccessProb'){ return $value + 0.2; } return $value; } }