Commit b9229766 authored by VanillaSalt's avatar VanillaSalt

update

parent d3c17ee3
...@@ -24,7 +24,7 @@ function c15574615.initial_effect(c) ...@@ -24,7 +24,7 @@ function c15574615.initial_effect(c)
end end
function c15574615.sprfilter(c) function c15574615.sprfilter(c)
return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsAbleToGraveAsCost() return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsAbleToGraveAsCost()
and (c:IsCode(80208158) or c:IsCode(16796157) or c:IsCode(43791861) or c:IsCode(79185500)) and c:IsCode(80208158,16796157,43791861,79185500)
end end
function c15574615.spcon(e,c) function c15574615.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -72,8 +72,7 @@ function c31076103.cfilter2(c,code) ...@@ -72,8 +72,7 @@ function c31076103.cfilter2(c,code)
return c:IsFaceup() and c:IsCode(code) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsCode(code) and c:IsAbleToGraveAsCost()
end end
function c31076103.cfilter3(c) function c31076103.cfilter3(c)
local code=c:GetCode() return c:IsFaceup() and c:IsCode(31076103,4081094,78697395) and c:IsAbleToGraveAsCost()
return c:IsFaceup() and (code==31076103 or code==4081094 or code==78697395) and c:IsAbleToGraveAsCost()
end end
function c31076103.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c31076103.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() if chk==0 then return e:GetHandler():IsAbleToGraveAsCost()
...@@ -98,12 +97,10 @@ function c31076103.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,12 +97,10 @@ function c31076103.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c31076103.cfilter4(c) function c31076103.cfilter4(c)
local code=c:GetCode() return c:IsCode(31076103,4081094,78697395)
return code==31076103 or code==4081094 or code==78697395
end end
function c31076103.cfilter5(c) function c31076103.cfilter5(c)
local code=c:GetCode() return c:IsFaceup() and c:IsCode(31076103,4081094,78697395)
return c:IsFaceup() and (code==31076103 or code==4081094 or code==78697395)
end end
function c31076103.tgcon(e,tp,eg,ep,ev,re,r,rp) function c31076103.tgcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c31076103.cfilter4,1,nil) return eg:IsExists(c31076103.cfilter4,1,nil)
......
...@@ -12,8 +12,7 @@ function c63120904.initial_effect(c) ...@@ -12,8 +12,7 @@ function c63120904.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c63120904.rfilter(c) function c63120904.rfilter(c)
local code=c:GetCode() return c:IsCode(90337190,95614612)
return code==90337190 or code==95614612
end end
function c63120904.dfilter(c) function c63120904.dfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
......
...@@ -11,6 +11,5 @@ function c71411377.initial_effect(c) ...@@ -11,6 +11,5 @@ function c71411377.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c71411377.atlimit(e,c) function c71411377.atlimit(e,c)
local code=c:GetCode() return c:IsCode(87257460,23756165,50140163)
return code==87257460 or code==23756165 or code==50140163
end end
...@@ -58,7 +58,7 @@ function c74875003.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c74875003.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c74875003.sumval(e,c) function c74875003.sumval(e,c)
return not c:IsCode(10000000) and not c:IsCode(10000010) and not c:IsCode(10000020) return not c:IsCode(10000000,10000010,10000020)
end end
function c74875003.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c74875003.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not se:GetHandler():IsCode(74875003) return not se:GetHandler():IsCode(74875003)
......
...@@ -10,12 +10,10 @@ function c80033124.initial_effect(c) ...@@ -10,12 +10,10 @@ function c80033124.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c80033124.ffilter0(c) function c80033124.ffilter0(c)
local code=c:GetCode() return c:IsCode(41230939,77625948,3019642) and c:IsAbleToDeck()
return (code==41230939 or code==77625948 or code==3019642) and c:IsAbleToDeck()
end end
function c80033124.ffilter(c,e) function c80033124.ffilter(c,e)
local code=c:GetCode() return c:IsCode(41230939,77625948,3019642) and c:IsAbleToDeck()
return (code==41230939 or code==77625948 or code==3019642) and c:IsAbleToDeck()
and not c:IsImmuneToEffect(e) and not c:IsImmuneToEffect(e)
end end
function c80033124.spfilter(c,e,tp) function c80033124.spfilter(c,e,tp)
......
...@@ -97,7 +97,7 @@ function c82734805.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,7 +97,7 @@ function c82734805.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c82734805.fcfilter1(c,code1,code2,g) function c82734805.fcfilter1(c,code1,code2,g)
return (c:IsFusionCode(code1) or c:IsFusionCode(code2)) and g:IsExists(Card.IsFusionSetCard,1,c,0xbb) return c:IsFusionCode(code1,code2) and g:IsExists(Card.IsFusionSetCard,1,c,0xbb)
end end
function c82734805.fcfilter2(c,code,g) function c82734805.fcfilter2(c,code,g)
return (c:IsFusionCode(code) or c:IsHasEffect(EFFECT_FUSION_SUBSTITUTE)) and g:IsExists(Card.IsFusionSetCard,1,c,0xbb) return (c:IsFusionCode(code) or c:IsHasEffect(EFFECT_FUSION_SUBSTITUTE)) and g:IsExists(Card.IsFusionSetCard,1,c,0xbb)
......
...@@ -11,6 +11,5 @@ function c9264485.initial_effect(c) ...@@ -11,6 +11,5 @@ function c9264485.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c9264485.etarget(e,re,c) function c9264485.etarget(e,re,c)
local code=c:GetCode() return c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsCode(75830094,11224103,48229808)
return c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and (code==75830094 or code==11224103 or code==48229808)
end end
...@@ -67,12 +67,10 @@ function c94212438.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,12 +67,10 @@ function c94212438.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c94212438.cfilter2(c,tp) function c94212438.cfilter2(c,tp)
local code=c:GetCode() return c:IsCode(94212438,31893528,67287533,94772232,30170981) and c:IsControler(tp)
return (code==94212438 or code==31893528 or code==67287533 or code==94772232 or code==30170981) and c:IsControler(tp)
end end
function c94212438.cfilter3(c) function c94212438.cfilter3(c)
local code=c:GetCode() return c:IsFaceup() and c:IsCode(94212438,31893528,67287533,94772232,30170981)
return c:IsFaceup() and (code==94212438 or code==31893528 or code==67287533 or code==94772232 or code==30170981)
end end
function c94212438.tgcon(e,tp,eg,ep,ev,re,r,rp) function c94212438.tgcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c94212438.cfilter2,1,nil,tp) return eg:IsExists(c94212438.cfilter2,1,nil,tp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment