diff --git a/webapp/controller/ChipController.class.php b/webapp/controller/ChipController.class.php index feef0d66..61f244a7 100644 --- a/webapp/controller/ChipController.class.php +++ b/webapp/controller/ChipController.class.php @@ -156,10 +156,10 @@ class ChipController extends BaseAuthedController $this->_rspErr(1, "Unable to use nft chip"); return; } - if ($chipDbParam['state'] == Chip::FREE_STATE) { - $this->_rspErr(1, "Unable to use free chip"); - return; - } +// if ($chipDbParam['state'] == Chip::FREE_STATE) { +// $this->_rspErr(1, "Unable to use free chip"); +// return; +// } if (count(array_filter(explode("|",$chipDbParam['inlay_state']))) > 0){ $this->_rspErr(1, "The used chip"); return; diff --git a/webapp/controller/GunController.class.php b/webapp/controller/GunController.class.php index 03544e25..4bbd2a88 100644 --- a/webapp/controller/GunController.class.php +++ b/webapp/controller/GunController.class.php @@ -847,10 +847,10 @@ class GunController extends BaseAuthedController { $this->_rspErr(100, 'NFT cannot be a material'); return; } - if ($costGunDb['state'] == Gun::FREE_STATE){ - $this->_rspErr(100, 'Unable to use free gun'); - return; - } +// if ($costGunDb['state'] == Gun::FREE_STATE){ +// $this->_rspErr(100, 'Unable to use free gun'); +// return; +// } if ($gunDb['gun_lv'] != $costGunDb['gun_lv']){ $this->_rspErr(100, 'You need the same level to do it'); return; diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index f28a17c7..59e114a3 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -186,10 +186,10 @@ class HeroController extends BaseAuthedController { $this->_rspErr(100, 'NFT cannot be a material'); return; } - if ($costHeroDb['state'] == Hero::FREE_STATE){ - $this->_rspErr(100, 'Unable to use free hero'); - return; - } +// if ($costHeroDb['state'] == Hero::FREE_STATE){ +// $this->_rspErr(100, 'Unable to use free hero'); +// return; +// } switch ($heroDb['hero_lv']){ case Hero::LV_1:{ if ($heroDb['hero_lv'] < $costHeroDb['hero_lv']){