game: 과실주(상성)를 대등한 병종에도 발동
This commit is contained in:
@@ -10,7 +10,7 @@ class che_상성보정_과실주 extends \sammo\BaseItem{
|
|||||||
|
|
||||||
protected $rawName = '과실주';
|
protected $rawName = '과실주';
|
||||||
protected $name = '과실주(상성)';
|
protected $name = '과실주(상성)';
|
||||||
protected $info = '[전투] 유리한 병종 전투시 공격력 +10%, 피해 -10%';
|
protected $info = '[전투] 대등/유리한 병종 전투시 공격력 +10%, 피해 -10%';
|
||||||
protected $cost = 200;
|
protected $cost = 200;
|
||||||
protected $consumable = false;
|
protected $consumable = false;
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ class che_상성보정_과실주 extends \sammo\BaseItem{
|
|||||||
{
|
{
|
||||||
$oppose = $unit->getOppose();
|
$oppose = $unit->getOppose();
|
||||||
$attackCoef = $unit->getCrewType()->getAttackCoef($oppose->getCrewType());
|
$attackCoef = $unit->getCrewType()->getAttackCoef($oppose->getCrewType());
|
||||||
if($attackCoef <= 1){
|
if($attackCoef < 1){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return new WarUnitTriggerCaller(
|
return new WarUnitTriggerCaller(
|
||||||
|
|||||||
Reference in New Issue
Block a user