Commit b30119b9 authored by 聖園ミカ's avatar 聖園ミカ 🐟

str

parent 9361f0ee
...@@ -45,13 +45,13 @@ function c65020080.initial_effect(c) ...@@ -45,13 +45,13 @@ function c65020080.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c65020080.con0(e,tp,eg,ep,ev,re,r,rp) function c65020080.con0(e,tp,eg,ep,ev,re,r,rp)
return not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020080.con1(e,tp,eg,ep,ev,re,r,rp) function c65020080.con1(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0
end end
function c65020080.con2(e,tp,eg,ep,ev,re,r,rp) function c65020080.con2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020095)>0 return Duel.IsPlayerAffectedByEffect(tp,65020095)
end end
function c65020080.counterfilter(c) function c65020080.counterfilter(c)
return c:IsSetCard(0xada3) return c:IsSetCard(0xada3)
...@@ -88,10 +88,10 @@ function c65020080.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,10 +88,10 @@ function c65020080.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c65020080.con3(e,tp,eg,ep,ev,re,r,rp) function c65020080.con3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020080.con4(e,tp,eg,ep,ev,re,r,rp) function c65020080.con4(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0)
end end
function c65020080.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c65020080.cost(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
......
...@@ -45,13 +45,13 @@ function c65020082.initial_effect(c) ...@@ -45,13 +45,13 @@ function c65020082.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c65020082.con0(e,tp,eg,ep,ev,re,r,rp) function c65020082.con0(e,tp,eg,ep,ev,re,r,rp)
return not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020082.con1(e,tp,eg,ep,ev,re,r,rp) function c65020082.con1(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0
end end
function c65020082.con2(e,tp,eg,ep,ev,re,r,rp) function c65020082.con2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020095)>0 return Duel.IsPlayerAffectedByEffect(tp,65020095)
end end
function c65020082.counterfilter(c) function c65020082.counterfilter(c)
return c:IsSetCard(0xada3) return c:IsSetCard(0xada3)
...@@ -88,10 +88,10 @@ function c65020082.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,10 +88,10 @@ function c65020082.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c65020082.con3(e,tp,eg,ep,ev,re,r,rp) function c65020082.con3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020082.con4(e,tp,eg,ep,ev,re,r,rp) function c65020082.con4(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0)
end end
function c65020082.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c65020082.cost(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
......
...@@ -45,13 +45,13 @@ function c65020084.initial_effect(c) ...@@ -45,13 +45,13 @@ function c65020084.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c65020084.con0(e,tp,eg,ep,ev,re,r,rp) function c65020084.con0(e,tp,eg,ep,ev,re,r,rp)
return not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020084.con1(e,tp,eg,ep,ev,re,r,rp) function c65020084.con1(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0
end end
function c65020084.con2(e,tp,eg,ep,ev,re,r,rp) function c65020084.con2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020095)>0 return Duel.IsPlayerAffectedByEffect(tp,65020095)
end end
function c65020084.counterfilter(c) function c65020084.counterfilter(c)
return c:IsSetCard(0xada3) return c:IsSetCard(0xada3)
...@@ -88,10 +88,10 @@ function c65020084.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,10 +88,10 @@ function c65020084.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c65020084.con3(e,tp,eg,ep,ev,re,r,rp) function c65020084.con3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020084.con4(e,tp,eg,ep,ev,re,r,rp) function c65020084.con4(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0)
end end
function c65020084.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c65020084.cost(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
......
...@@ -45,13 +45,13 @@ function c65020086.initial_effect(c) ...@@ -45,13 +45,13 @@ function c65020086.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c65020086.con0(e,tp,eg,ep,ev,re,r,rp) function c65020086.con0(e,tp,eg,ep,ev,re,r,rp)
return not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020086.con1(e,tp,eg,ep,ev,re,r,rp) function c65020086.con1(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0
end end
function c65020086.con2(e,tp,eg,ep,ev,re,r,rp) function c65020086.con2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020095)>0 return Duel.IsPlayerAffectedByEffect(tp,65020095)
end end
function c65020086.counterfilter(c) function c65020086.counterfilter(c)
return c:IsSetCard(0xada3) return c:IsSetCard(0xada3)
...@@ -88,10 +88,10 @@ function c65020086.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,10 +88,10 @@ function c65020086.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c65020086.con3(e,tp,eg,ep,ev,re,r,rp) function c65020086.con3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020086.con4(e,tp,eg,ep,ev,re,r,rp) function c65020086.con4(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0)
end end
function c65020086.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c65020086.cost(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
......
...@@ -45,13 +45,13 @@ function c65020088.initial_effect(c) ...@@ -45,13 +45,13 @@ function c65020088.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c65020088.con0(e,tp,eg,ep,ev,re,r,rp) function c65020088.con0(e,tp,eg,ep,ev,re,r,rp)
return not (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0) return not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020088.con1(e,tp,eg,ep,ev,re,r,rp) function c65020088.con1(e,tp,eg,ep,ev,re,r,rp)
return (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0
end end
function c65020088.con2(e,tp,eg,ep,ev,re,r,rp) function c65020088.con2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,65020095) return Duel.IsPlayerAffectedByEffect(tp,65020095)
end end
function c65020088.counterfilter(c) function c65020088.counterfilter(c)
return c:IsSetCard(0xada3) return c:IsSetCard(0xada3)
...@@ -88,7 +88,7 @@ function c65020088.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,7 +88,7 @@ function c65020088.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c65020088.con3(e,tp,eg,ep,ev,re,r,rp) function c65020088.con3(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,65020092) and not (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020088.con4(e,tp,eg,ep,ev,re,r,rp) function c65020088.con4(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,65020092) and (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0)
......
...@@ -44,13 +44,13 @@ function c65020090.initial_effect(c) ...@@ -44,13 +44,13 @@ function c65020090.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c65020090.con0(e,tp,eg,ep,ev,re,r,rp) function c65020090.con0(e,tp,eg,ep,ev,re,r,rp)
return not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020090.con1(e,tp,eg,ep,ev,re,r,rp) function c65020090.con1(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0
end end
function c65020090.con2(e,tp,eg,ep,ev,re,r,rp) function c65020090.con2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020095)>0 return Duel.IsPlayerAffectedByEffect(tp,65020095)
end end
function c65020090.counterfilter(c) function c65020090.counterfilter(c)
return c:IsSetCard(0xada3) return c:IsSetCard(0xada3)
...@@ -87,10 +87,10 @@ function c65020090.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,10 +87,10 @@ function c65020090.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c65020090.con3(e,tp,eg,ep,ev,re,r,rp) function c65020090.con3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and not (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and not Duel.IsPlayerAffectedByEffect(tp,65020093) and e:GetHandler():GetFlagEffect(65001020)==0
end end
function c65020090.con4(e,tp,eg,ep,ev,re,r,rp) function c65020090.con4(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,65020092)>0 and (Duel.GetFlagEffect(tp,65020093)>0 or e:GetHandler():GetFlagEffect(65001020)~=0) return Duel.IsPlayerAffectedByEffect(tp,65020092) and (Duel.IsPlayerAffectedByEffect(tp,65020093) or e:GetHandler():GetFlagEffect(65001020)~=0)
end end
function c65020090.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c65020090.cost(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
......
...@@ -5,7 +5,7 @@ function c65020171.initial_effect(c) ...@@ -5,7 +5,7 @@ function c65020171.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_TO_GRAVE) e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,65020171) e1:SetCountLimit(1,65020171)
e1:SetCondition(c65020171.accon) e1:SetCondition(c65020171.accon)
e1:SetTarget(c65020171.actg) e1:SetTarget(c65020171.actg)
......
...@@ -56,7 +56,7 @@ function c65020175.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c65020175.op(e,tp,eg,ep,ev,re,r,rp)
end end
function c65020175.acfil(c) function c65020175.acfil(c)
return c:IsSetCard(0xcda8) and c:IsType(TYPE_XYZ) and c:IsFaceup() return c:IsSetCard(0xcda8) and c:IsType(TYPE_XYZ) and c:IsFaceup() and c:GetOverlayCount()>0
end end
function c65020175.condition(e,tp,eg,ep,ev,re,r,rp) function c65020175.condition(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsChainNegatable(ev) then return false end if not Duel.IsChainNegatable(ev) then return false end
......
...@@ -90,8 +90,10 @@ function c65050017.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,8 +90,10 @@ function c65050017.adop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c65050017.eop(e,tp,eg,ep,ev,re,r,rp) function c65050017.eop(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabelObject()~=nil then
e:GetLabelObject():Reset() e:GetLabelObject():Reset()
e:GetLabelObject():GetHandler():ResetFlagEffect(65050017) e:GetLabelObject():GetHandler():ResetFlagEffect(65050017)
e:GetLabelObject():GetHandler():ResetFlagEffect(0) e:GetLabelObject():GetHandler():ResetFlagEffect(0)
end
e:Reset() e:Reset()
end end
\ No newline at end of file
...@@ -33,13 +33,13 @@ function c65050019.hspfilter(c,e,tp) ...@@ -33,13 +33,13 @@ function c65050019.hspfilter(c,e,tp)
end end
function c65050019.hsptg(e,tp,eg,ep,ev,re,r,rp,chk) function c65050019.hsptg(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
and Duel.IsExistingMatchingCard(c65050019.hspfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 end and Duel.IsExistingMatchingCard(c65050019.hspfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND)
end end
function c65050019.hspop(e,tp,eg,ep,ev,re,r,rp) function c65050019.hspop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c65050019.hspfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c65050019.hspfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end if tc and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end
end end
......
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