Commit a777b9b3 authored by salix5's avatar salix5

merge from sidschingis/patch

parent 1bd57faa
...@@ -20,14 +20,17 @@ function c30127518.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -20,14 +20,17 @@ function c30127518.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c30127518.activate(e,tp,eg,ep,ev,re,r,rp) function c30127518.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(c30127518.cfilter,nil,1-tp,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(c30127518.cfilter,nil,1-tp,e)
if g:GetCount()<2 then return end Duel.SendtoGrave(g,REASON_EFFECT)
local exg=Group.CreateGroup() local exg=Group.CreateGroup()
local tc=g:GetFirst() local g1=Duel.GetOperatedGroup()
local tc=g1:GetFirst()
while tc do while tc do
local fg=Duel.GetMatchingGroup(Card.IsCode,tp,0,LOCATION_DECK+LOCATION_EXTRA+LOCATION_HAND,nil,tc:GetCode()) if tc:IsLocation(LOCATION_GRAVE) then
exg:Merge(fg) local fg=Duel.GetMatchingGroup(Card.IsCode,tp,0,LOCATION_DECK+LOCATION_EXTRA+LOCATION_HAND,nil,tc:GetCode())
tc=g:GetNext() exg:Merge(fg)
end
tc=g1:GetNext()
end end
Duel.SendtoGrave(g,REASON_EFFECT) Duel.BreakEffect()
Duel.SendtoGrave(exg,REASON_EFFECT) Duel.SendtoGrave(exg,REASON_EFFECT)
end end
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