Commit 764d03a2 authored by VanillaSalt's avatar VanillaSalt

fix

parent 5af57f75
...@@ -69,8 +69,7 @@ function c10117149.atkval(e,c) ...@@ -69,8 +69,7 @@ function c10117149.atkval(e,c)
return Duel.GetMatchingGroupCount(c10117149.cfilter,c:GetControler(),LOCATION_EXTRA,0,nil)*500 return Duel.GetMatchingGroupCount(c10117149.cfilter,c:GetControler(),LOCATION_EXTRA,0,nil)*500
end end
function c10117149.spcon(e,tp,eg,ep,ev,re,r,rp) function c10117149.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() return e:GetHandler():IsPreviousLocation(LOCATION_PZONE)
return c:IsPreviousLocation(LOCATION_SZONE) and (c:GetPreviousSequence()==6 or c:GetPreviousSequence()==7)
end end
function c10117149.spfilter(c,e,tp) function c10117149.spfilter(c,e,tp)
return c:IsSetCard(0xab) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xab) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -18,7 +18,7 @@ function c128454.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -18,7 +18,7 @@ function c128454.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c128454.thfilter(c) function c128454.thfilter(c)
return ((c:IsLocation(LOCATION_SZONE) and (c:GetSequence()==6 or c:GetSequence()==7) and (c:IsSetCard(0x9f) or c:IsSetCard(0x98))) return ((c:IsLocation(LOCATION_PZONE) and (c:IsSetCard(0x9f) or c:IsSetCard(0x98)))
or (c:IsFaceup() and c:IsLocation(LOCATION_MZONE) and c:IsType(TYPE_PENDULUM))) and c:IsAbleToHand() or (c:IsFaceup() and c:IsLocation(LOCATION_MZONE) and c:IsType(TYPE_PENDULUM))) and c:IsAbleToHand()
end end
function c128454.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c128454.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -55,16 +55,14 @@ function c1344018.descost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,16 +55,14 @@ function c1344018.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterFlagEffect(tp,1344018,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,1344018,RESET_PHASE+PHASE_END,0,1)
end end
function c1344018.desfilter(c) function c1344018.desfilter(c)
local seq=c:GetSequence()
return c:IsFaceup() and c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM) return c:IsFaceup() and c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM)
and (c:IsLocation(LOCATION_MZONE) or (seq==6 or seq==7))
end end
function c1344018.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c1344018.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c1344018.desfilter,tp,LOCATION_ONFIELD,0,1,nil) if chk==0 then return Duel.IsExistingTarget(c1344018.desfilter,tp,LOCATION_MZONE+LOCATION_PZONE,0,1,nil)
and Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,nil) end and Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g1=Duel.SelectTarget(tp,c1344018.desfilter,tp,LOCATION_ONFIELD,0,1,1,nil) local g1=Duel.SelectTarget(tp,c1344018.desfilter,tp,LOCATION_MZONE+LOCATION_PZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g2=Duel.SelectTarget(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil) local g2=Duel.SelectTarget(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil)
g1:Merge(g2) g1:Merge(g2)
......
...@@ -66,7 +66,7 @@ function c20409757.aclimit(e,re,tp) ...@@ -66,7 +66,7 @@ function c20409757.aclimit(e,re,tp)
end end
function c20409757.slcon(e) function c20409757.slcon(e)
local seq=e:GetHandler():GetSequence() local seq=e:GetHandler():GetSequence()
local tc=Duel.GetFieldCard(e:GetHandlerPlayer(),LOCATION_SZONE,13-seq) local tc=Duel.GetFieldCard(e:GetHandlerPlayer(),LOCATION_PZONE,({1,0,0,0,0,0,1,0})[seq+1])
return not tc or (not tc:IsSetCard(0x98) and not tc:IsSetCard(0x99)) return not tc or (not tc:IsSetCard(0x98) and not tc:IsSetCard(0x99))
end end
function c20409757.filter(c,tp) function c20409757.filter(c,tp)
......
...@@ -58,7 +58,7 @@ function c94415058.aclimit(e,re,tp) ...@@ -58,7 +58,7 @@ function c94415058.aclimit(e,re,tp)
end end
function c94415058.sccon(e) function c94415058.sccon(e)
local seq=e:GetHandler():GetSequence() local seq=e:GetHandler():GetSequence()
local tc=Duel.GetFieldCard(e:GetHandlerPlayer(),LOCATION_SZONE,13-seq) local tc=Duel.GetFieldCard(e:GetHandlerPlayer(),LOCATION_PZONE,({1,0,0,0,0,0,1,0})[seq+1])
return not tc or (not tc:IsSetCard(0x98) and not tc:IsSetCard(0x99)) return not tc or (not tc:IsSetCard(0x98) and not tc:IsSetCard(0x99))
end end
function c94415058.spcon(e,tp,eg,ep,ev,re,r,rp) function c94415058.spcon(e,tp,eg,ep,ev,re,r,rp)
......
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