유니크 아이템에 효과 추가
This commit is contained in:
@@ -10,13 +10,19 @@ use sammo\ObjectTrigger;
|
||||
|
||||
class che_반계시도 extends BaseWarUnitTrigger{
|
||||
protected $priority = ObjectTrigger::PRIORITY_BODY + 300;
|
||||
protected $prob;
|
||||
|
||||
public function __construct(WarUnit $unit, int $raiseType = 0, float $prob = 0.4){
|
||||
$this->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(0.4)){
|
||||
if(!Util::randBool($this->prob)){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user