Commit fe9059b9 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12038015.lua

parent fc832fa1
...@@ -5,7 +5,7 @@ local cm=_G["c"..m] ...@@ -5,7 +5,7 @@ local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddXyzProcedure(c,nil,9,3,cm.ovfilter,aux.Stringid(m,0)) aux.AddXyzProcedure(c,nil,9,3,nil,aux.Stringid(m,0))
-- --
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -44,10 +44,6 @@ function cm.cost1(e,c,tp,st) ...@@ -44,10 +44,6 @@ function cm.cost1(e,c,tp,st)
if bit.band(st,SUMMON_TYPE_XYZ)~=SUMMON_TYPE_XYZ then return true end if bit.band(st,SUMMON_TYPE_XYZ)~=SUMMON_TYPE_XYZ then return true end
return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_ONFIELD,0,1,nil,12038000) return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_ONFIELD,0,1,nil,12038000)
end end
function cm.ovfilter(c)
local tp=c:GetControl()
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:GetOverlayCount()==0 and srprzm.spcheck(c,tp)
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
...@@ -84,4 +80,4 @@ function cm.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,4 +80,4 @@ function cm.spop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,ct-1,ct-1,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,ct-1,ct-1,nil)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end end
\ No newline at end of file
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