Commit 72fc4d6e authored by mercury233's avatar mercury233

fix

parent c85559fc
...@@ -48,6 +48,7 @@ function c101006022.initial_effect(c) ...@@ -48,6 +48,7 @@ function c101006022.initial_effect(c)
e4:SetDescription(aux.Stringid(101006022,3)) e4:SetDescription(aux.Stringid(101006022,3))
e4:SetCategory(CATEGORY_TODECK) e4:SetCategory(CATEGORY_TODECK)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCode(EVENT_PHASE+PHASE_END) e4:SetCode(EVENT_PHASE+PHASE_END)
e4:SetCountLimit(1) e4:SetCountLimit(1)
...@@ -75,8 +76,8 @@ function c101006022.spcost_selector(c,tp,g,sg,i) ...@@ -75,8 +76,8 @@ function c101006022.spcost_selector(c,tp,g,sg,i)
end end
function c101006022.spcon(e,c) function c101006022.spcon(e,c)
if c==nil then return true end if c==nil then return true end
if Duel.GetMZoneCount(tp)<=0 then return false end
local tp=c:GetControler() local tp=c:GetControler()
if Duel.GetMZoneCount(tp)<=0 then return false end
local g=Duel.GetMatchingGroup(c101006022.spcostfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c101006022.spcostfilter,tp,LOCATION_GRAVE,0,nil)
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
return g:IsExists(c101006022.spcost_selector,1,nil,tp,g,sg,1) return g:IsExists(c101006022.spcost_selector,1,nil,tp,g,sg,1)
......
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