Commit b2011fb4 authored by mercury233's avatar mercury233 Committed by GitHub

fix 王の憤激

parent bc1d1a1b
...@@ -45,17 +45,27 @@ function c720147.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -45,17 +45,27 @@ function c720147.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
sg:KeepAlive() sg:KeepAlive()
e:SetLabelObject(sg) e:SetLabelObject(sg)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
for rc in aux.Next(sg) do
rc:CreateEffectRelation(e)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c720147.matfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp,sg) Duel.SelectTarget(tp,c720147.matfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp,sg)
end end
function c720147.activate(e,tp,eg,ep,ev,re,r,rp) function c720147.activate(e,tp,eg,ep,ev,re,r,rp)
local rg=e:GetLabelObject()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
rg:AddCard(tc) local rg=e:GetLabelObject()
local exg=rg:Filter(Card.IsRelateToEffect,nil,e)
exg:AddCard(tc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c720147.matfilter2),tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,rg:GetCount()-1,rg:GetCount()-1,rg) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c720147.matfilter2),tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,rg:GetCount(),rg:GetCount(),exg)
if g:GetCount()>0 then if g:GetCount()>0 then
for oc in aux.Next(g) do
local og=oc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
end
Duel.Overlay(tc,g) Duel.Overlay(tc,g)
end end
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