Commit dff8dc32 authored by mercury233's avatar mercury233

fix

parent 43547fd6
...@@ -25,6 +25,7 @@ function c100412011.initial_effect(c) ...@@ -25,6 +25,7 @@ function c100412011.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,100412011)
e3:SetTarget(c100412011.sptg) e3:SetTarget(c100412011.sptg)
e3:SetOperation(c100412011.spop) e3:SetOperation(c100412011.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -30,21 +30,20 @@ function c101007083.matcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,21 +30,20 @@ function c101007083.matcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c101007083.matfilter(c,tp) function c101007083.matfilter(c)
return c:IsSetCard(0x229) and c:IsType(TYPE_XYZ) and c:IsFaceup() return c:IsSetCard(0x229) and c:IsType(TYPE_XYZ) and c:IsFaceup()
and Duel.IsExistingMatchingCard(Card.IsCanBeXyzMaterial,tp,0,LOCATION_GRAVE,1,nil,c)
end end
function c101007083.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101007083.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return c101007083.matfilter(c,tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) end if chkc then return c101007083.matfilter(c) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) end
if chk==0 then return Duel.IsExistingTarget(c101007083.matfilter,tp,LOCATION_MZONE,0,1,nil,tp) end if chk==0 then return Duel.IsExistingTarget(c101007083.matfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c101007083.matfilter,tp,LOCATION_MZONE,0,1,1,nil,tp) Duel.SelectTarget(tp,c101007083.matfilter,tp,LOCATION_MZONE,0,1,1,nil)
end end
function c101007083.matop(e,tp,eg,ep,ev,re,r,rp) function c101007083.matop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsType(TYPE_XYZ) then if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsType(TYPE_XYZ) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,Card.IsCanBeXyzMaterial,tp,0,LOCATION_GRAVE,1,1,nil,tc) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(aux.TRUE),tp,0,LOCATION_GRAVE,1,1,nil)
Duel.Overlay(tc,g) Duel.Overlay(tc,g)
end end
end 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