object = $unit; $this->prob = $prob; } protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{ if(!$oppose->hasActivatedSkill('계략')){ return true; } if(!Util::randBool($this->prob)){ return true; } assert(key_exists('magic', $opposeEnv)); $self->activateSkill('반계'); $oppose->deactivateSkill('계략'); return true; } }