game: 기병이 돌격 시 궁병 선제에 멈추도록 수정
This commit is contained in:
@@ -20,11 +20,14 @@ class che_돌격지속 extends BaseWarUnitTrigger{
|
|||||||
if(!$self->isAttacker()){
|
if(!$self->isAttacker()){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if($self->getPhase() < $self->getMaxPhase() - 1){
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
$attackCoef = $self->getCrewType()->getAttackCoef($oppose->getCrewType());
|
$attackCoef = $self->getCrewType()->getAttackCoef($oppose->getCrewType());
|
||||||
if($attackCoef < 1){
|
if($attackCoef < 1){
|
||||||
|
if($oppose->hasActivatedSkill('선제') && $self->getPhase() >= $self->getMaxPhase() - 2){
|
||||||
|
$self->addBonusPhase(-1);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if($self->getPhase() < $self->getMaxPhase() - 1){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$self->addBonusPhase(1);
|
$self->addBonusPhase(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user