Commit fb2b81e9 authored by DailyShana's avatar DailyShana

fix

parent ca7da6b9
...@@ -34,9 +34,6 @@ end ...@@ -34,9 +34,6 @@ end
function c12247206.selfilter(c,e,tp) function c12247206.selfilter(c,e,tp)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c12247206.filter,tp,0x13,0,1,nil,c,e,tp) return c:IsFaceup() and Duel.IsExistingMatchingCard(c12247206.filter,tp,0x13,0,1,nil,c,e,tp)
end end
function c12247206.rmfilter(c)
return c:IsLocation(LOCATION_MZONE+LOCATION_GRAVE)
end
function c12247206.sp(g,tp,pos) function c12247206.sp(g,tp,pos)
local sc=g:GetFirst() local sc=g:GetFirst()
while sc do while sc do
...@@ -56,7 +53,7 @@ function c12247206.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +53,7 @@ function c12247206.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local fg=g:Select(tp,ft1,ft1,nil) local fg=g:Select(tp,ft1,ft1,nil)
c12247206.sp(fg,tp,POS_FACEUP_ATTACK) c12247206.sp(fg,tp,POS_FACEUP_ATTACK)
g:Remove(c12247206.rmfilter,nil) g:Sub(fg)
gg:Merge(g) gg:Merge(g)
end end
end end
...@@ -73,7 +70,7 @@ function c12247206.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,7 +70,7 @@ function c12247206.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_SPSUMMON)
local fg=g2:Select(1-tp,ft2,ft2,nil) local fg=g2:Select(1-tp,ft2,ft2,nil)
c12247206.sp(fg,1-tp,POS_FACEUP) c12247206.sp(fg,1-tp,POS_FACEUP)
g2:Remove(c12247206.rmfilter,nil) g2:Sub(fg)
gg:Merge(g2) gg:Merge(g2)
end end
end end
......
...@@ -66,7 +66,7 @@ end ...@@ -66,7 +66,7 @@ end
function c52176579.lvop(e,tp,eg,ep,ev,re,r,rp) function c52176579.lvop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c52176579.tgfilter,tp,LOCATION_DECK,0,1,1,nil,tc) local g=Duel.SelectMatchingCard(tp,c52176579.tgfilter,tp,LOCATION_DECK,0,1,1,nil,tc:GetLevel())
if g:GetCount()>0 then if g:GetCount()>0 then
local gc=g:GetFirst() local gc=g:GetFirst()
if Duel.SendtoGrave(gc,REASON_EFFECT)~=0 and gc:IsLocation(LOCATION_GRAVE) and tc:IsRelateToEffect(e) and tc:IsFaceup() then if Duel.SendtoGrave(gc,REASON_EFFECT)~=0 and gc:IsLocation(LOCATION_GRAVE) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
......
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