Commit 5ade4f70 authored by wind2009's avatar wind2009

Fix 原石竜インペリアル・ドラゴン

parent 26895e0c
...@@ -35,16 +35,16 @@ function s.initial_effect(c) ...@@ -35,16 +35,16 @@ function s.initial_effect(c)
e3:SetOperation(s.drop) e3:SetOperation(s.drop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.tbfilter(c) function s.tbfilter(c,tp)
return c:IsType(TYPE_NORMAL) return c:IsType(TYPE_NORMAL) and (c:IsControler(tp) or c:IsFaceup())
end end
function s.ttcon(e,c,minc) function s.ttcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
local g=Duel.GetMatchingGroup(s.tbfilter,c:GetControler(),LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(s.tbfilter,c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,nil,c:GetControler())
return minc<=1 and Duel.CheckTribute(c,1,1,g,c:GetControler()) return minc<=1 and Duel.CheckTribute(c,1,1,g,c:GetControler())
end end
function s.ttop(e,tp,eg,ep,ev,re,r,rp,c) function s.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(s.tbfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(s.tbfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local tg=Duel.SelectTribute(tp,c,1,1,g) local tg=Duel.SelectTribute(tp,c,1,1,g)
c:SetMaterial(tg) c:SetMaterial(tg)
Duel.Release(tg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(tg,REASON_SUMMON+REASON_MATERIAL)
...@@ -109,6 +109,7 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -109,6 +109,7 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
tc=g:GetNext() tc=g:GetNext()
end end
Duel.AdjustInstantly()
Duel.BreakEffect() Duel.BreakEffect()
local g2=Duel.GetMatchingGroup(s.rmfilter1,tp,0,LOCATION_MZONE,nil) local g2=Duel.GetMatchingGroup(s.rmfilter1,tp,0,LOCATION_MZONE,nil)
Duel.Remove(g2,POS_FACEUP,REASON_EFFECT) Duel.Remove(g2,POS_FACEUP,REASON_EFFECT)
......
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