From 2bfbc27d7db38caf4f38d0810aa279e841c17aaa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Jul 2020 06:10:18 -0300 Subject: This should aid in crafting bugs of options being overriden by careless players. It is NOT warranted to work. --- npc/craft/smith.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/craft/smith.txt') diff --git a/npc/craft/smith.txt b/npc/craft/smith.txt index 9f5a4d903..6d5ea54c9 100644 --- a/npc/craft/smith.txt +++ b/npc/craft/smith.txt @@ -66,6 +66,12 @@ function script SmithSystem { delinventorylist(); // Needed, because we'll rely on rfind() getinventorylist(); .@index=array_rfind(@inventorylist_id, .@it); + + // Just to be sure, if this have an option, get something else + if (getitemoptionparambyindex(.@index, 0)) { + .@index=array_find(@inventorylist_id, .@it); + } + if (csys_Check(.@index, 75000)) { csys_Apply(.@index); } -- cgit v1.2.3-70-g09d2