Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -29,10 +29,17 @@ str["效果卡的种类表"][1] = TYPE_SPELL str["效果卡的种类表"][2] = TYPE_TRAP str["效果卡的种类表"][3] = TYPE_EFFECT +str["无效果灵摆怪兽表"] = {} + +str["无效果灵摆怪兽表"][1] = 28363749 +str["无效果灵摆怪兽表"][2] = 19474136 +str["无效果灵摆怪兽表"][3] = 17390179 +str["无效果灵摆怪兽表"][4] = 83980492 + cache_1 = 0 cache_1 = cache_1 + LOCATION_HAND cache_1 = cache_1 + LOCATION_MZONE cache_1 = cache_1 + LOCATION_SZONE @@ -161,29 +168,26 @@ cache_1 = Card.IsType(card, TYPE_PENDULUM) if cache_1 then --{ - cache_1 = Card.IsCode(card, 28363749) - - cache_2 = Card.IsCode(card, 19474136) - - cache_3 = Card.IsCode(card, 17390179) - - cache_4 = Card.IsCode(card, 83980492) - - if cache_1 - or cache_2 - or cache_3 - or cache_4 then --{ - - --} - - else --{ - - return true - + cache_1 = #str["无效果灵摆怪兽表"] + + for i = 1, cache_1 do --{ + + cache_1 = Card.IsCode(card, str["无效果灵摆怪兽表"][i]) + + if cache_1 then --{ + + --} + + else --{ + + return true + + end --} + end --} end --} return false