Commit ba37122a authored by TanakaKotoha's avatar TanakaKotoha

wadashimo

parent 701a3121
Pipeline #628 passed with stages
in 40 minutes and 45 seconds
...@@ -14,10 +14,10 @@ function cm.initial_effect(c) ...@@ -14,10 +14,10 @@ function cm.initial_effect(c)
e1:SetTarget(cm.target) e1:SetTarget(cm.target)
e1:SetOperation(cm.activate) e1:SetOperation(cm.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.chainfilter) Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.counterfilter)
end end
function cm.chainfilter(re,tp,cid) function cm.counterfilter(c)
return not ( re:GetHandler():IsLocation(LOCATION_EXTRA) ) return c:GetSummonLocation()~=LOCATION_EXTRA
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)==0 and Duel.IsPlayerCanSendtoGrave(tp) end if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)==0 and Duel.IsPlayerCanSendtoGrave(tp) end
......
...@@ -91,7 +91,7 @@ function XY.recon(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,7 +91,7 @@ function XY.recon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,c:GetCode()+20000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,c:GetCode()+20000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function XY.REstfilter(c,m) function XY.REstfilter(c,m)
return c:IsSetCard(0x5349) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() and not c:IsCode(m) return c:IsSetCard(0x5349) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() and not c:IsCode(m)
......
...@@ -39,12 +39,12 @@ function cm.initial_effect(c) ...@@ -39,12 +39,12 @@ function cm.initial_effect(c)
e4:SetOperation(cm.spop) e4:SetOperation(cm.spop)
e4:SetValue(1) e4:SetValue(1)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--draw --
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(m,2)) e5:SetDescription(aux.Stringid(m,2))
e5:SetCategory(CATEGORY_TOGRAVE) e5:SetCategory(CATEGORY_TOGRAVE)
e5:SetType(EFFECT_TYPE_QUICK_O) e5:SetType(EFFECT_TYPE_QUICK_O)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e5:SetCode(EVENT_FREE_CHAIN)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1) e5:SetCountLimit(1)
e5:SetCondition(cm.tgcon) e5:SetCondition(cm.tgcon)
...@@ -163,7 +163,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -163,7 +163,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.efcon(e,tp,eg,ep,ev,re,r,rp) function cm.efcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,33403501)>22 return Duel.GetFlagEffect(tp,33403501)>13
end end
function cm.effectfilter(e,ct) function cm.effectfilter(e,ct)
local p=e:GetHandler():GetControler() local p=e:GetHandler():GetControler()
......
...@@ -18,7 +18,7 @@ end ...@@ -18,7 +18,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -19,7 +19,7 @@ end ...@@ -19,7 +19,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -19,7 +19,7 @@ end ...@@ -19,7 +19,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -33,7 +33,7 @@ local ck=0 ...@@ -33,7 +33,7 @@ local ck=0
for i=1,ev do for i=1,ev do
local te,tgp=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER) local te,tgp=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
if tgp~=tp and (te:IsActiveType(TYPE_MONSTER) or te:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(i) then if tgp~=tp and (te:IsActiveType(TYPE_MONSTER) or te:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(i) then
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and ck==1 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and ck==1 and Duel.GetFlagEffect(tp,33443500)==0
end end
end end
return false return false
......
...@@ -24,7 +24,7 @@ end ...@@ -24,7 +24,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -19,7 +19,7 @@ end ...@@ -19,7 +19,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -19,7 +19,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,7 +19,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE and Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE and Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -23,7 +23,7 @@ end ...@@ -23,7 +23,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -19,7 +19,7 @@ end ...@@ -19,7 +19,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.GetFlagEffect(tp,33403501)/2 local ss=Duel.GetFlagEffect(tp,33403501)/2
if ss<4 then ss=4 end if ss<4 then ss=4 end
return Duel.GetFlagEffect(tp,33413501)<=ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0 return Duel.GetFlagEffect(tp,33413501)<ss and Duel.GetFlagEffect(tp,m+30000)==0 and Duel.GetFlagEffect(tp,33443500)==0
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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