Commit d238928f authored by mercury233's avatar mercury233 Committed by DailyShana

fix Zoodiac Xiangke (#778)

* fix
* fix
parent a67468cd
...@@ -60,11 +60,15 @@ function c98918572.xyztg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -60,11 +60,15 @@ function c98918572.xyztg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c98918572.xyzop(e,tp,eg,ep,ev,re,r,rp) function c98918572.xyzop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()~=2 or not e:GetHandler():IsRelateToEffect(e) then return end if g:GetCount()~=2 then return end
local tc=g:GetFirst() local tc=g:GetFirst()
local xc=g:GetNext() local xc=g:GetNext()
if xc==e:GetLabelObject() then tc,xc=xc,tc end if xc==e:GetLabelObject() then tc,xc=xc,tc end
if not tc:IsImmuneToEffect(e) then if not tc:IsImmuneToEffect(e) then
local og=xc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(xc)) Duel.Overlay(tc,Group.FromCards(xc))
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