浏览代码

Follow up 80218e99e26df77d95e674098ce03eccf4ff09a6

Cydh 5 年之前
父节点
当前提交
c16cbc55ec
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/map/item_synthesis.cpp
  2. 1 1
      src/map/item_upgrade.cpp

+ 1 - 1
src/map/item_synthesis.cpp

@@ -121,7 +121,7 @@ uint64 ItemSynthesisDatabase::parseBodyNode(const YAML::Node &node) {
 bool item_synthesis_open(map_session_data *sd, unsigned int itemid) {
 	nullpo_retr(false, sd);
 
-	if (pc_cant_act(sd))
+	if (pc_cant_act2(sd) || (sd)->chatID)
 		return false;
 
 	if (pc_is90overweight(sd) || !pc_inventoryblank(sd)) {

+ 1 - 1
src/map/item_upgrade.cpp

@@ -107,7 +107,7 @@ uint64 ItemUpgradeDatabase::parseBodyNode(const YAML::Node &node) {
 bool item_upgrade_open(map_session_data *sd, unsigned int itemid) {
 	nullpo_retr(false, sd);
 
-	if (pc_cant_act(sd))
+	if (pc_cant_act2(sd) || (sd)->chatID)
 		return false;
 
 	if (pc_is90overweight(sd) || !pc_inventoryblank(sd)) {