Commit bc63f58a authored by VanillaSalt's avatar VanillaSalt

Merge pull request #1146 from Steeldarkeagel/patch-36

Update c12247206.lua
parents 437e5fb3 31d9b3e1
...@@ -60,6 +60,7 @@ function c12247206.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +60,7 @@ function c12247206.activate(e,tp,eg,ep,ev,re,r,rp)
local ft2=Duel.GetLocationCount(1-tp,LOCATION_MZONE) local ft2=Duel.GetLocationCount(1-tp,LOCATION_MZONE)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_FACEUP)
local sg=Duel.SelectMatchingCard(1-tp,c12247206.selfilter,1-tp,LOCATION_MZONE,0,1,1,nil) local sg=Duel.SelectMatchingCard(1-tp,c12247206.selfilter,1-tp,LOCATION_MZONE,0,1,1,nil)
if Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)<5 then
if sg:GetCount()>0 then if sg:GetCount()>0 then
local g=Duel.GetMatchingGroup(c12247206.filter,1-tp,0x13,0,nil,sg:GetFirst():GetCode(),e,1-tp) local g=Duel.GetMatchingGroup(c12247206.filter,1-tp,0x13,0,nil,sg:GetFirst():GetCode(),e,1-tp)
if g:GetCount()<=ft2 then c12247206.sp(g,1-tp,POS_FACEUP) if g:GetCount()<=ft2 then c12247206.sp(g,1-tp,POS_FACEUP)
...@@ -70,6 +71,8 @@ function c12247206.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,6 +71,8 @@ function c12247206.activate(e,tp,eg,ep,ev,re,r,rp)
g:Remove(c12247206.rmfilter,nil) g:Remove(c12247206.rmfilter,nil)
gg:Merge(g) gg:Merge(g)
end end
else
end
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
Duel.SendtoGrave(gg,REASON_EFFECT) Duel.SendtoGrave(gg,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