Diff of /Script.cpp [120a28] .. [663d83] Maximize Restore

  Switch to side-by-side view

--- a/Script.cpp
+++ b/Script.cpp
@@ -920,6 +920,21 @@
               }
             }
           }
+
+          if((handle_trigger(trigger->opcode)&0xff)==CHECK_SPL2)
+          {
+            CString tmpstr = format_spell_id(trigger->bytes[0]);
+            memcpy(finddata.resource,tmpstr,8);
+            finddata.param1=bcnt;
+            if(searchdata.resource[0])
+            {
+              if(!strnicmp(finddata.resource,searchdata.resource,8))
+              {
+                return 1;
+              }
+            }
+          }
+
           break;
         case FLG_MTYPE:
           item=trigger->opcode&0x3fff;
@@ -989,6 +1004,20 @@
               }
             }
           }
+
+          if((handle_action(action->opcode)&0xff)==CHECK_SPL2)
+          {
+            CString tmpstr = format_spell_id(action->bytes[0]);
+            memcpy(finddata.resource,tmpstr,8);
+            finddata.param1=bcnt;
+            if(searchdata.resource[0])
+            {
+              if(!strnicmp(finddata.resource,searchdata.resource,8))
+              {
+                return 1;
+              }
+            }
+          }
           break;
         case FLG_MFEAT:
           item=action->opcode;