아이템 관련 버그 수정
This commit is contained in:
@@ -285,7 +285,7 @@ class che_화계 extends Command\GeneralCommand{
|
||||
$this->affectDestCity($injuryCount);
|
||||
|
||||
$itemObj = $general->getItem();
|
||||
if($itemObj->isValidTurnItem('GeneralCommand', '계략') && $itemObj::$consumable){
|
||||
if($itemObj->isConsumableNow('GeneralCommand', '계략') && $itemObj::$consumable){
|
||||
$itemName = $itemObj->name;
|
||||
$josaUl = JosaUtil::pick($itemName, '을');
|
||||
$logger->pushGeneralActionLog("<C>{$itemName}</>{$josaUl} 사용!", ActionLogger::PLAIN);
|
||||
|
||||
@@ -68,7 +68,7 @@ class che_포상 extends Command\NationCommand{
|
||||
$this->setCity();
|
||||
$this->setNation(['gold', 'rice']);
|
||||
|
||||
$destGeneral = General::createGeneralObjFromDB($this->arg['destGeneralID'], ['gold', 'nation'], 1);
|
||||
$destGeneral = General::createGeneralObjFromDB($this->arg['destGeneralID'], ['gold', 'rice', 'nation'], 1);
|
||||
$this->setDestGeneral($destGeneral);
|
||||
|
||||
$this->runnableConstraints=[
|
||||
|
||||
Reference in New Issue
Block a user