아이템 전량 구현, 말, 무기, 책 준비

This commit is contained in:
2019-05-13 02:44:01 +09:00
parent 91b5a1e44a
commit 85409263c8
24 changed files with 340 additions and 50 deletions
@@ -0,0 +1,20 @@
<?php
namespace sammo\WarUnitTrigger;
use sammo\BaseWarUnitTrigger;
use sammo\WarUnitGeneral;
use sammo\WarUnitCity;
use sammo\WarUnit;
use sammo\GameUnitDetail;
use sammo\ObjectTrigger;
class che_부상무효 extends BaseWarUnitTrigger{
static protected $priority = ObjectTrigger::PRIORITY_BEGIN + 200;
protected function actionWar(WarUnit $self, WarUnit $oppose, array &$selfEnv, array &$opposeEnv):bool{
assert($self instanceof WarUnitGeneral, 'General만 발동 가능');
$oppose->activateSkill('저격불가');
$self->activateSkill('부상무효');
return true;
}
}