Commit 9c01f8fe authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c50224305.lua

parent 5299aa6b
Pipeline #31278 passed with stages
in 44 minutes and 4 seconds
......@@ -51,7 +51,7 @@ function c50224305.initial_effect(c)
e4:SetCondition(c50224305.imcon)
e4:SetValue(c50224305.efilter)
c:RegisterEffect(e4)
--to grave
--xmaterial
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_QUICK_O)
e5:SetRange(LOCATION_MZONE)
......@@ -115,7 +115,7 @@ function c50224305.pendop(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
if ft2>0 then ft2=1 end
ft=1
end
local ect=(c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]) or ft
local ect=(c50224305 and Duel.IsPlayerAffectedByEffect(tp,50224305) and c50224305[tp]) or ft
--受到效果影响导致能特召的最大数量
if ect~=nil then ft=math.min(ft,ect) end
local loc=0
......@@ -202,12 +202,12 @@ function c50224305.xmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c50224305.xmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsType(TYPE_XYZ)
and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end
and Duel.IsExistingMatchingCard(Card.IsCanOverlay,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end
end
function c50224305.xmop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,1,nil,e)
local g=Duel.SelectMatchingCard(tp,Card.IsCanOverlay,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,1,nil,e)
if g:GetCount()>=0 then
Duel.Overlay(e:GetHandler(),g)
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