수극을 통한 저격 예시
This commit is contained in:
@@ -1,24 +1,10 @@
|
||||
<?php
|
||||
namespace sammo;
|
||||
|
||||
class GameUnitInitTriggerBase extends ObjectTrigger{
|
||||
class GameUnitInitTriggerBase extends BaseWarUnitTrigger{
|
||||
static protected $priority = 10000;
|
||||
|
||||
public function __construct(WarUnit $unit){
|
||||
$this->object = $unit;
|
||||
$this->unitType = $unit->getCrewType();
|
||||
}
|
||||
|
||||
public function action(?array $env=null, $arg=null):?array{
|
||||
/** @var WarUnitGeneral $attacker */
|
||||
/** @var WarUnit $defender */
|
||||
[$attacker, $defender] = $arg;
|
||||
|
||||
$attackerCrewType = $attacker->getCrewType();
|
||||
$defenderCrewType = $defender->getCrewType();
|
||||
|
||||
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):void{
|
||||
//TODO: 충차는 성벽 상대로 부상입지 않음
|
||||
|
||||
return $env;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user