object = $unit; $this->raiseType = $raiseType; $this->isSelf = $isSelf; $this->activeSkills = $activeSkills; } protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{ if($this->isSelf){ $self->activateSkill(...$this->activeSkills); } else{ $oppose->activateSkill(...$this->activeSkills); } return true; } }