34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
<?php
|
|
namespace sammo\ActionSpecialDomestic;
|
|
use \sammo\iAction;
|
|
use \sammo\General;
|
|
use \sammo\SpecialityHelper;
|
|
use \sammo\WarUnit;
|
|
use sammo\WarUnitTriggerCaller;
|
|
use sammo\WarUnitTrigger\che_격노시도;
|
|
use sammo\WarUnitTrigger\che_격노발동;
|
|
|
|
class che_event_격노 extends \sammo\BaseSpecial{
|
|
|
|
protected $id = 74;
|
|
protected $name = '격노';
|
|
protected $info = '[전투] 상대방 필살 시 격노(필살) 발동, 회피 시도시 25% 확률로 격노 발동, 공격 시 일정 확률로 진노(1페이즈 추가), 격노마다 대미지 20% 추가 중첩';
|
|
|
|
static $selectWeightType = SpecialityHelper::WEIGHT_NORM;
|
|
static $selectWeight = 1;
|
|
static $type = [
|
|
SpecialityHelper::STAT_STRENGTH,
|
|
];
|
|
|
|
public function getWarPowerMultiplier(WarUnit $unit):array{
|
|
$activatedCnt = $unit->hasActivatedSkillOnLog('격노');
|
|
return [1 + 0.2*$activatedCnt, 1];
|
|
}
|
|
|
|
public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
|
|
return new WarUnitTriggerCaller(
|
|
new che_격노시도($unit),
|
|
new che_격노발동($unit)
|
|
);
|
|
}
|
|
} |