25 lines
721 B
PHP
25 lines
721 B
PHP
<?php
|
|
namespace sammo\WarUnitTrigger;
|
|
use sammo\BaseWarUnitTrigger;
|
|
use sammo\WarUnitGeneral;
|
|
use sammo\WarUnitCity;
|
|
use sammo\WarUnit;
|
|
use sammo\GameUnitDetail;
|
|
use sammo\Util;
|
|
use sammo\ObjectTrigger;
|
|
|
|
class che_기병병종전투 extends BaseWarUnitTrigger{
|
|
protected $priority = ObjectTrigger::PRIORITY_FINAL; //최후미
|
|
|
|
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
|
|
if(!$self->isAttacker()){
|
|
$oppose->multiplyWarPowerMultiply(1/0.95);
|
|
$self->multiplyWarPowerMultiply(0.95);
|
|
}
|
|
if($oppose instanceof WarUnitCity){
|
|
$self->multiplyWarPowerMultiply(0.9);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
} |