Commit 4095a7f6 authored by gg123gg's avatar gg123gg Committed by GitHub

Add files via upload

parent a9af7a52
...@@ -56,6 +56,7 @@ function cm.initial_effect(c) ...@@ -56,6 +56,7 @@ function cm.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_LEAVE_FIELD) e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetProperty(EFFECT_FLAG_DELAY) e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCountLimit(1,12004024+100)
e4:SetCondition(c12004024.pencon) e4:SetCondition(c12004024.pencon)
e4:SetTarget(c12004024.pentg) e4:SetTarget(c12004024.pentg)
e4:SetOperation(c12004024.penop) e4:SetOperation(c12004024.penop)
...@@ -152,14 +153,14 @@ function c12004024.spcon(e,c) ...@@ -152,14 +153,14 @@ function c12004024.spcon(e,c)
local tp=c:GetControler() local tp=c:GetControler()
return ((c:IsLocation(LOCATION_HAND) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0) or return ((c:IsLocation(LOCATION_HAND) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0) or
(c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_LINK)>0)) (c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_LINK)>0))
and Duel.IsExistingMatchingCard(c12004024.spfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil,RACE_MACHINE) and Duel.IsExistingMatchingCard(c12004024.spfilter,tp,LOCATION_GRAVE+LOCATION_MZONE,0,1,nil,RACE_MACHINE)
and Duel.IsExistingMatchingCard(c12004024.spfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil,RACE_SEASERPENT) and Duel.IsExistingMatchingCard(c12004024.spfilter,tp,LOCATION_GRAVE+LOCATION_MZONE,0,1,nil,RACE_SEASERPENT)
end end
function c12004024.spop(e,tp,eg,ep,ev,re,r,rp,c) function c12004024.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=Duel.SelectMatchingCard(tp,c12004024.spfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,RACE_MACHINE) local g1=Duel.SelectMatchingCard(tp,c12004024.spfilter,tp,LOCATION_GRAVE+LOCATION_MZONE,0,1,1,nil,RACE_MACHINE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,c12004024.spfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,RACE_SEASERPENT) local g2=Duel.SelectMatchingCard(tp,c12004024.spfilter,tp,LOCATION_GRAVE+LOCATION_MZONE,0,1,1,nil,RACE_SEASERPENT)
g1:Merge(g2) g1:Merge(g2)
Duel.Remove(g1,POS_FACEUP,REASON_COST) Duel.Remove(g1,POS_FACEUP,REASON_COST)
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