Commit 5978e4a3 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 953e18c8
......@@ -47,7 +47,7 @@ function cm.describe_with_Raphael(c)
return m and m.lighting_with_Raphael
end
function cm.sprfilter1(c,tp)
return c:IsFaceup() and c:IsSummonable(true,nil) and c:IsSetCard(0x1fbd)
return c:IsFaceup() and c:IsSummonableCard() and c:IsSetCard(0x1fbd)
and Duel.IsExistingMatchingCard(cm.sprfilter2,tp,LOCATION_MZONE,0,1,c)
end
function cm.sprfilter2(c)
......@@ -61,10 +61,10 @@ function cm.spcon2(e,c)
and Duel.IsExistingMatchingCard(cm.sprfilter1,tp,LOCATION_MZONE,0,1,nil,tp)
end
function cm.spop2(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,cm.sprfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g2=Duel.SelectMatchingCard(tp,cm.sprfilter2,tp,LOCATION_MZONE,0,1,1,nil,g1:GetFirst():GetLevel())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g2=Duel.SelectMatchingCard(tp,cm.sprfilter2,tp,LOCATION_MZONE,0,1,1,nil)
g1:Merge(g2)
Duel.SendtoGrave(g1,REASON_COST)
e:GetHandler():SetMaterial(g1)
......
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