Commit 7fde036a authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 554b2435
Pipeline #511 failed with stages
in 12 minutes and 43 seconds
......@@ -12,7 +12,7 @@ end
function c10900053.discon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
if ph==PHASE_MAIN1 or ph==PHASE_MAIN2 then return end
return rp==1-tp and Duel.IsChainNegatable(ev) and
return rp==1-tp and Duel.IsChainNegatable(ev)
end
function c10900053.desfilter(c)
return c:IsFaceup() and not c:IsStatus(STATUS_BATTLE_DESTROYED)
......
......@@ -28,19 +28,19 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND,0,1,63,nil)
if g:GetCount()>0 then
if Duel.Remove(c,POS_FACEDOWN,REASON_COST+REASON_TEMPORARY)~=0 then
if Duel.Remove(g,POS_FACEDOWN,REASON_COST+REASON_TEMPORARY)~=0 then
local og=Duel.GetOperatedGroup()
local oc=og:GetFirst()
while oc do
oc:RegisterFlagEffect(m,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
oc=og:GetNext()
oc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,0,1)
oc=og:GetNext()
end
og:KeepAlive()
local tt=og:GetCount()
if cm.lplist[tp]==16000 then
Duel.Draw(tp,tt,REASON_EFFECT)
end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetRange(LOCATION_REMOVED)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
......
......@@ -95,6 +95,7 @@ function cm.filter1(c,mc)
return c:IsCanBeBattleTarget(mc)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(cm.cfilter1,tp,0,LOCATION_MZONE,nil)
if g then
tc=g:GetFirst()
......
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