Commit 2f551790 authored by VanillaSalt's avatar VanillaSalt

fix

parent 9ddefd57
...@@ -69,7 +69,7 @@ function c22200403.initial_effect(c) ...@@ -69,7 +69,7 @@ function c22200403.initial_effect(c)
c:RegisterEffect(e8) c:RegisterEffect(e8)
end end
function c22200403.effcon(e) function c22200403.effcon(e)
return Duel.GetFieldGroup(0,LOCATION_PZONE,LOCATION_PZONE)>=e:GetLabel() return Duel.GetFieldGroupCount(0,LOCATION_PZONE,LOCATION_PZONE)>=e:GetLabel()
end end
function c22200403.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c22200403.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=e:GetHandler():GetBattleTarget() local tc=e:GetHandler():GetBattleTarget()
......
...@@ -19,11 +19,8 @@ function c2359348.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,11 +19,8 @@ function c2359348.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c2359348.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c2359348.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
local tc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0) if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_PZONE,0,2,nil) end
local tc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1) local g=Duel.GetFieldGroup(tp,LOCATION_PZONE,0)
if chk==0 then return tc1 and tc2
and tc1:IsCanBeEffectTarget(e) and tc2:IsCanBeEffectTarget(e) end
local g=Group.FromCards(tc1,tc2)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0)
end end
......
...@@ -11,10 +11,8 @@ function c31531170.initial_effect(c) ...@@ -11,10 +11,8 @@ function c31531170.initial_effect(c)
end end
function c31531170.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c31531170.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
local tc1=Duel.GetFieldCard(1-tp,LOCATION_PZONE,0) if chk==0 then return Duel.IsExistingTarget(nil,tp,0,LOCATION_PZONE,2,nil) end
local tc2=Duel.GetFieldCard(1-tp,LOCATION_PZONE,1) local g=Duel.GetFieldGroup(tp,0,LOCATION_PZONE)
if chk==0 then return tc1 and tc2 and tc1:IsCanBeEffectTarget(e) and tc2:IsCanBeEffectTarget(e) end
local g=Group.FromCards(tc1,tc2)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
end end
function c31531170.activate(e,tp,eg,ep,ev,re,r,rp) function c31531170.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -50,9 +50,7 @@ function c39024589.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,9 +50,7 @@ function c39024589.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c39024589.spcon(e,tp,eg,ep,ev,re,r,rp) function c39024589.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0) return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_PZONE,0,2,nil,0x10ec)
local tc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return tc1 and tc1:IsSetCard(0x10ec) and tc2 and tc2:IsSetCard(0x10ec)
end end
function c39024589.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c39024589.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
......
...@@ -70,9 +70,9 @@ function c45383307.thfilter(c) ...@@ -70,9 +70,9 @@ function c45383307.thfilter(c)
end end
function c45383307.thcon(e,tp,eg,ep,ev,re,r,rp) function c45383307.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousSequence()==5 and c:IsPreviousPosition(POS_FACEUP) return c:IsPreviousLocation(LOCATION_FZONE) and c:IsPreviousPosition(POS_FACEUP)
end end
function c45383307.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45383307.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c45383307.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c45383307.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -29,10 +29,7 @@ function c46500985.initial_effect(c) ...@@ -29,10 +29,7 @@ function c46500985.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c46500985.immcon(e) function c46500985.immcon(e)
local tp=e:GetHandlerPlayer() return Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,nil,0xe1)
local c1=Duel.GetFieldCard(tp,LOCATION_PZONE,0)
local c2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return (c1 and c1:IsSetCard(0xe1)) or (c2 and c2:IsSetCard(0xe1))
end end
function c46500985.etarget(e,c) function c46500985.etarget(e,c)
return c:IsSetCard(0xe1) and not c:IsType(TYPE_EFFECT) return c:IsSetCard(0xe1) and not c:IsType(TYPE_EFFECT)
......
...@@ -25,9 +25,7 @@ function c54941203.initial_effect(c) ...@@ -25,9 +25,7 @@ function c54941203.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c54941203.spcon(e,tp,eg,ep,ev,re,r,rp) function c54941203.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0) return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_PZONE,0,2,nil,0x98)
local tc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return tc1 and tc1:IsSetCard(0x98) and tc2 and tc2:IsSetCard(0x98)
end end
function c54941203.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c54941203.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -89,7 +89,7 @@ function c57554544.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,7 +89,7 @@ function c57554544.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c57554544.descon(e,tp,eg,ep,ev,re,r,rp) function c57554544.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousSequence()==5 and c:IsPreviousPosition(POS_FACEUP) return c:IsPreviousLocation(LOCATION_FZONE) and c:IsPreviousPosition(POS_FACEUP)
end end
function c57554544.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c57554544.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -11,9 +11,7 @@ function c59057953.initial_effect(c) ...@@ -11,9 +11,7 @@ function c59057953.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c59057953.condition(e,tp,eg,ep,ev,re,r,rp) function c59057953.condition(e,tp,eg,ep,ev,re,r,rp)
local tc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0) return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_PZONE,0,2,nil,0x10ec)
local tc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return tc1 and tc1:IsSetCard(0x10ec) and tc2 and tc2:IsSetCard(0x10ec)
end end
function c59057953.filter(c) function c59057953.filter(c)
return c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x10ec) and not c:IsForbidden() return c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x10ec) and not c:IsForbidden()
......
...@@ -28,8 +28,5 @@ function c62681049.tdtg(e,c) ...@@ -28,8 +28,5 @@ function c62681049.tdtg(e,c)
return (c:IsFacedown() or not c:IsSetCard(0xb3)) and c:IsReason(REASON_EFFECT) return (c:IsFacedown() or not c:IsSetCard(0xb3)) and c:IsReason(REASON_EFFECT)
end end
function c62681049.tdcon(e) function c62681049.tdcon(e)
local tp=e:GetHandlerPlayer() return Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,nil,0xb3)
local tc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0)
local tc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return (tc1 and tc1:IsSetCard(0xb3)) or (tc2 and tc2:IsSetCard(0xb3))
end end
...@@ -24,7 +24,7 @@ function c65646587.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,7 +24,7 @@ function c65646587.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local chkf=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and PLAYER_NONE or tp local chkf=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and PLAYER_NONE or tp
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil) local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil)
if Duel.GetFieldCard(tp,LOCATION_PZONE,0) and Duel.GetFieldCard(tp,LOCATION_PZONE,1) then if Duel.GetFieldGroupCount(tp,LOCATION_PZONE,0)>=2 then
mg1:Merge(Duel.GetMatchingGroup(c65646587.filter0,tp,LOCATION_PZONE,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(c65646587.filter0,tp,LOCATION_PZONE,0,nil,e))
end end
local res=Duel.IsExistingMatchingCard(c65646587.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c65646587.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
...@@ -44,7 +44,7 @@ end ...@@ -44,7 +44,7 @@ end
function c65646587.activate(e,tp,eg,ep,ev,re,r,rp) function c65646587.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and PLAYER_NONE or tp local chkf=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and PLAYER_NONE or tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c65646587.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c65646587.filter1,nil,e)
if Duel.GetFieldCard(tp,LOCATION_PZONE,0) and Duel.GetFieldCard(tp,LOCATION_PZONE,1) then if Duel.GetFieldGroupCount(tp,LOCATION_PZONE,0)>=2 then
mg1:Merge(Duel.GetMatchingGroup(c65646587.filter0,tp,LOCATION_PZONE,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(c65646587.filter0,tp,LOCATION_PZONE,0,nil,e))
end end
local sg1=Duel.GetMatchingGroup(c65646587.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c65646587.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
......
...@@ -83,8 +83,7 @@ function c67237709.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,8 +83,7 @@ function c67237709.drop(e,tp,eg,ep,ev,re,r,rp)
end end
function c67237709.thcon2(e,tp,eg,ep,ev,re,r,rp) function c67237709.thcon2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_EFFECT) return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_FZONE)
and c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousSequence()==5
end end
function c67237709.thfilter2(c) function c67237709.thfilter2(c)
return c:IsSetCard(0xd2) and c:IsAbleToHand() return c:IsSetCard(0xd2) and c:IsAbleToHand()
......
...@@ -31,9 +31,7 @@ function c67754901.indfilter(c) ...@@ -31,9 +31,7 @@ function c67754901.indfilter(c)
return c:IsFaceup() and c:IsSetCard(0x99) return c:IsFaceup() and c:IsSetCard(0x99)
end end
function c67754901.indcon(e,tp,eg,ep,ev,re,r,rp) function c67754901.indcon(e,tp,eg,ep,ev,re,r,rp)
local tc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0) return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_PZONE,0,1,nil,0x99)
local tc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return (tc1 and tc1:IsSetCard(0x99)) or (tc2 and tc2:IsSetCard(0x99))
end end
function c67754901.indtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c67754901.indtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c67754901.indfilter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c67754901.indfilter(chkc) end
......
...@@ -24,14 +24,11 @@ function c7241272.initial_effect(c) ...@@ -24,14 +24,11 @@ function c7241272.initial_effect(c)
e3:SetOperation(c7241272.spop) e3:SetOperation(c7241272.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c7241272.desfilter(c)
return c:GetSequence()==5
end
function c7241272.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c7241272.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and c7241272.desfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_FZONE) end
if chk==0 then return Duel.IsExistingTarget(c7241272.desfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_FZONE,LOCATION_FZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c7241272.desfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil) local g=Duel.SelectTarget(tp,nil,tp,LOCATION_FZONE,LOCATION_FZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c7241272.desop(e,tp,eg,ep,ev,re,r,rp) function c7241272.desop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -48,7 +48,7 @@ function c72772445.actcon(e) ...@@ -48,7 +48,7 @@ function c72772445.actcon(e)
end end
function c72772445.spcon(e,tp,eg,ep,ev,re,r,rp) function c72772445.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousSequence()==5 and c:IsPreviousPosition(POS_FACEUP) return c:IsPreviousLocation(LOCATION_FZONE) and c:IsPreviousPosition(POS_FACEUP)
end end
function c72772445.spfilter(c,e,tp) function c72772445.spfilter(c,e,tp)
return c:IsSetCard(0xe2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xe2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -78,10 +78,7 @@ function c78949372.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,10 +78,7 @@ function c78949372.drop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c78949372.tgcon(e) function c78949372.tgcon(e)
local tp=e:GetHandlerPlayer() return Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,nil,0xd0)
local tc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0)
local tc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return (tc1 and tc1:IsSetCard(0xd0)) or (tc2 and tc2:IsSetCard(0xd0))
end end
function c78949372.effectfilter(e,ct) function c78949372.effectfilter(e,ct)
local p=e:GetHandlerPlayer() local p=e:GetHandlerPlayer()
......
...@@ -48,10 +48,7 @@ function c9030160.initial_effect(c) ...@@ -48,10 +48,7 @@ function c9030160.initial_effect(c)
c:RegisterEffect(e8) c:RegisterEffect(e8)
end end
function c9030160.condition(e) function c9030160.condition(e)
local tp=e:GetHandlerPlayer() return Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_PZONE,0,2,nil,0xaf)
local pc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0)
local pc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return pc1 and pc2 and pc1:IsSetCard(0xaf) and pc2:IsSetCard(0xaf)
end end
function c9030160.sumlimit(e,c) function c9030160.sumlimit(e,c)
if not c then return false end if not c then return false end
......
...@@ -40,8 +40,5 @@ function c96073342.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,8 +40,5 @@ function c96073342.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c96073342.handcon(e) function c96073342.handcon(e)
local tp=e:GetHandlerPlayer() return Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_PZONE,0,2,nil,0xc4)
local tc1=Duel.GetFieldCard(tp,LOCATION_PZONE,0)
local tc2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
return tc1 and tc1:IsSetCard(0xc4) and tc2 and tc2:IsSetCard(0xc4)
end end
...@@ -38,7 +38,7 @@ function c9989792.initial_effect(c) ...@@ -38,7 +38,7 @@ function c9989792.initial_effect(c)
end end
function c9989792.thcon(e,tp,eg,ep,ev,re,r,rp) function c9989792.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousSequence()==5 and c:IsPreviousPosition(POS_FACEUP) return c:IsPreviousLocation(LOCATION_FZONE) and c:IsPreviousPosition(POS_FACEUP)
end end
function c9989792.thfilter(c) function c9989792.thfilter(c)
return c:IsSetCard(0xe2) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0xe2) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
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