Commit c9c18921 authored by Tachibana's avatar Tachibana 🐟

E

parent 9fa4cc2d
Pipeline #16413 passed with stages
in 41 minutes and 56 seconds
...@@ -70,7 +70,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE) e2:SetCode(EFFECT_UPDATE_DEFENSE)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
if tc:IsFaceup() and (tc:GetAttack()==0 or (tc:GetDefense()==0 and not tc:IsType(TYPE_LINK))) then if tc:IsFaceup() and (tc:GetAttack()==0 and (tc:GetDefense()==0 and not tc:IsType(TYPE_LINK))) then
Duel.NegateRelatedChain(tc,RESET_TURN_SET) Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -60,11 +60,11 @@ end ...@@ -60,11 +60,11 @@ end
function cm.sprcon(e,c) function cm.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,c)
return g:CheckSubGroup(aux.mzctcheck,1,1,tp) return g:CheckSubGroup(aux.mzctcheck,1,1,tp)
end end
function cm.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c) function cm.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroup(tp,aux.mzctcheck,true,1,1,tp) local sg=g:SelectSubGroup(tp,aux.mzctcheck,true,1,1,tp)
if sg then if sg then
...@@ -140,5 +140,5 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp) ...@@ -140,5 +140,5 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1,true) tc:RegisterEffect(e1,true)
end end
function cm.bgmop(e,tp,eg,ep,ev,re,r,rp) function cm.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(m,4)) Duel.Hint(HINT_MUSIC,0,aux.Stringid(m,4))
end end
...@@ -60,11 +60,11 @@ end ...@@ -60,11 +60,11 @@ end
function cm.sprcon(e,c) function cm.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,c)
return g:CheckSubGroup(aux.mzctcheck,2,2,tp) return g:CheckSubGroup(aux.mzctcheck,2,2,tp)
end end
function cm.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c) function cm.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.sprfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:SelectSubGroup(tp,aux.mzctcheck,true,2,2,tp) local sg=g:SelectSubGroup(tp,aux.mzctcheck,true,2,2,tp)
if sg then if sg then
...@@ -124,5 +124,5 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp) ...@@ -124,5 +124,5 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1,true) tc:RegisterEffect(e1,true)
end end
function cm.bgmop(e,tp,eg,ep,ev,re,r,rp) function cm.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(m,4)) Duel.Hint(HINT_MUSIC,0,aux.Stringid(m,4))
end end
...@@ -63,7 +63,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
fop(e,tp,eg,ep,ev,re,r,rp) fop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.eftg(e,c) function cm.eftg(e,c)
return e:GetHandler():GetEquipGroup():IsContains(c) and c:IsSetCard(0x9354) return e:GetHandler():GetEquipGroup():IsContains(c) and c:IsSetCard(0x5354)
end end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp) function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
if bit.band(r,REASON_EFFECT)<=0 then return false end if bit.band(r,REASON_EFFECT)<=0 then return false end
......
...@@ -45,7 +45,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.operation1(e,tp,eg,ep,ev,re,r,rp) function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,m)>0 then return end if Duel.GetFlagEffect(tp,m)>0 then return end
Duel.RegisterFlagEffect(tp,m,0,EFFECT_FLAG_CLIENT_HINT,1,aux.Stringid(m,1)) Duel.RegisterFlagEffect(tp,m,0,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,1))
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
......
...@@ -65,13 +65,13 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,13 +65,13 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local t2=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil):GetCount()>0 local t2=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil):GetCount()>0
if chk==0 then return t1 or t2 end if chk==0 then return t1 or t2 end
local op=0 local op=0
local m={} local m1={}
local n={} local n1={}
local ct=1 local ct=1
if t1 then m[ct]=aux.Stringid(m,2) n[ct]=1 ct=ct+1 end if t1 then m1[ct]=aux.Stringid(m,2) n1[ct]=1 ct=ct+1 end
if t2 then m[ct]=aux.Stringid(m,3) n[ct]=2 ct=ct+1 end if t2 then m1[ct]=aux.Stringid(m,3) n1[ct]=2 ct=ct+1 end
local sp=Duel.SelectOption(tp,table.unpack(m)) local sp=Duel.SelectOption(tp,table.unpack(m1))
op=n[sp+1] op=n1[sp+1]
e:SetLabel(op) e:SetLabel(op)
if op==1 then if op==1 then
......
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