forked from devsam/core
feat,game: 반계불가 처리 추가, 반계불가 유니크 추가
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace sammo\ActionItem;
|
||||
|
||||
use sammo\BaseWarUnitTrigger;
|
||||
use sammo\WarUnit;
|
||||
use sammo\WarUnitTrigger\che_저지발동;
|
||||
use sammo\WarUnitTrigger\WarActivateSkills;
|
||||
use sammo\WarUnitTriggerCaller;
|
||||
|
||||
class che_반계저지_박혁론 extends \sammo\BaseItem{
|
||||
|
||||
protected $rawName = '박혁론';
|
||||
protected $name = '박혁론(반계저지)';
|
||||
protected $info = '[전투] 상대의 계략 되돌림 불가';
|
||||
protected $cost = 200;
|
||||
protected $consumable = false;
|
||||
|
||||
public function getBattlePhaseSkillTriggerList(WarUnit $unit):?WarUnitTriggerCaller{
|
||||
return new WarUnitTriggerCaller(
|
||||
new WarActivateSkills($unit, BaseWarUnitTrigger::TYPE_NONE, false, '반계불가'),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,9 @@ class che_반계시도 extends BaseWarUnitTrigger{
|
||||
if(!$oppose->hasActivatedSkill('계략')){
|
||||
return true;
|
||||
}
|
||||
if($self->hasActivatedSkill('반계불가')){
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!Util::randBool($this->prob)){
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user