diff --git a/hwe/sammo/API/InheritAction/BuyHiddenBuff.php b/hwe/sammo/API/InheritAction/BuyHiddenBuff.php index 2c0dd284..8aadee57 100644 --- a/hwe/sammo/API/InheritAction/BuyHiddenBuff.php +++ b/hwe/sammo/API/InheritAction/BuyHiddenBuff.php @@ -67,6 +67,10 @@ class BuyHiddenBuff extends \sammo\BaseAPI $reqAmount = GameConst::$inheritBuffPoints[$level] - GameConst::$inheritBuffPoints[$prevLevel]; $db = DB::db(); + $gameStor = KVStorage::getStorage($db, 'game_env'); + if($gameStor->isunited){ + return '이미 천하가 통일되었습니다.'; + } $inheritStor = KVStorage::getStorage($db, "inheritance_{$userID}"); $previousPoint = ($inheritStor->getValue('previous') ?? [0,0])[0]; if ($previousPoint < $reqAmount) { diff --git a/hwe/sammo/API/InheritAction/BuyRandomUnique.php b/hwe/sammo/API/InheritAction/BuyRandomUnique.php index e8e77b66..6c134cd7 100644 --- a/hwe/sammo/API/InheritAction/BuyRandomUnique.php +++ b/hwe/sammo/API/InheritAction/BuyRandomUnique.php @@ -40,6 +40,10 @@ class BuyRandomUnique extends \sammo\BaseAPI } $db = DB::db(); + $gameStor = KVStorage::getStorage($db, 'game_env'); + if($gameStor->isunited){ + return '이미 천하가 통일되었습니다.'; + } $inheritStor = KVStorage::getStorage($db, "inheritance_{$userID}"); $previousPoint = ($inheritStor->getValue('previous')??[0, 0])[0]; $reqAmount = GameConst::$inheritItemRandomPoint; diff --git a/hwe/sammo/API/InheritAction/ResetSpecialWar.php b/hwe/sammo/API/InheritAction/ResetSpecialWar.php index 62bb6025..1aff877d 100644 --- a/hwe/sammo/API/InheritAction/ResetSpecialWar.php +++ b/hwe/sammo/API/InheritAction/ResetSpecialWar.php @@ -51,6 +51,11 @@ class ResetSpecialWar extends \sammo\BaseAPI $reqPoint = GameConst::$inheritResetAttrPointBase[$nextLevel]; $db = DB::db(); + $gameStor = KVStorage::getStorage($db, 'game_env'); + if($gameStor->isunited){ + return '이미 천하가 통일되었습니다.'; + } + $inheritStor = KVStorage::getStorage($db, "inheritance_{$userID}"); $previousPoint = ($inheritStor->getValue('previous') ?? [0, 0])[0]; if ($previousPoint < $reqPoint) { diff --git a/hwe/sammo/API/InheritAction/ResetTurnTime.php b/hwe/sammo/API/InheritAction/ResetTurnTime.php index 479608a6..b0537bc6 100644 --- a/hwe/sammo/API/InheritAction/ResetTurnTime.php +++ b/hwe/sammo/API/InheritAction/ResetTurnTime.php @@ -50,6 +50,10 @@ class ResetTurnTime extends \sammo\BaseAPI $reqPoint = GameConst::$inheritResetAttrPointBase[$nextLevel]; $db = DB::db(); + $gameStor = KVStorage::getStorage($db, 'game_env'); + if($gameStor->isunited){ + return '이미 천하가 통일되었습니다.'; + } $inheritStor = KVStorage::getStorage($db, "inheritance_{$userID}"); $previousPoint = ($inheritStor->getValue('previous') ?? [0, 0])[0]; if ($previousPoint < $reqPoint) { diff --git a/hwe/sammo/API/InheritAction/SetNextSpecialWar.php b/hwe/sammo/API/InheritAction/SetNextSpecialWar.php index 30a31e51..a865293d 100644 --- a/hwe/sammo/API/InheritAction/SetNextSpecialWar.php +++ b/hwe/sammo/API/InheritAction/SetNextSpecialWar.php @@ -65,6 +65,10 @@ class SetNextSpecialWar extends \sammo\BaseAPI $reqAmount = GameConst::$inheritSpecificSpecialPoint; $db = DB::db(); + $gameStor = KVStorage::getStorage($db, 'game_env'); + if($gameStor->isunited){ + return '이미 천하가 통일되었습니다.'; + } $inheritStor = KVStorage::getStorage($db, "inheritance_{$userID}"); $previousPoint = ($inheritStor->getValue('previous') ?? [0, 0])[0]; if ($previousPoint < $reqAmount) {