Commit fc326b85 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent 0e165f9c
Pipeline #2417 failed with stages
in 16 minutes and 53 seconds
No preview for this file type
......@@ -70,12 +70,13 @@ function cm.csoperation(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
if Duel.IsExistingMatchingCard(nil,1-tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) and c:IsRelateToEffect(e) then
local g=Duel.SelectMatchingCard(1-tp,nil,1-tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,nil)
local og=g:GetFirst():GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
local g=Duel.SelectMatchingCard(1-tp,nil,1-tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,nil)
local og=g:GetFirst():GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(g:GetFirst()))
end
Duel.Overlay(c,Group.FromCards(g:GetFirst()))
end
end
function cm.damcon(e,tp,eg,ep,ev,re,r,rp)
......
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