瀏覽代碼

- Protection for mercenary scrolls. (Don't consume it if you already have a mercenary).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13162 54d463be-8e91-2dee-dedb-b68131a5f0ec
zephyrus 16 年之前
父節點
當前提交
c67c8f6184
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/map/pc.c

+ 3 - 0
src/map/pc.c

@@ -3140,6 +3140,9 @@ int pc_isUseitem(struct map_session_data *sd,int n)
 			break;
 	}
 
+	if( nameid >= 12153 && nameid <= 12182 && sd->md != NULL )
+		return 0; // Mercenary Scrolls
+
 	//added item_noequip.txt items check by Maya&[Lupus]
 	if (
 		(map[sd->bl.m].flag.pvp && item->flag.no_equip&1) || // PVP