Commit e31ec9f2 authored by Amiya's avatar Amiya

nex

parent 2037591a
Pipeline #32689 passed with stages
in 1 minute and 42 seconds
...@@ -34,7 +34,7 @@ function s.initial_effect(c) ...@@ -34,7 +34,7 @@ function s.initial_effect(c)
--destroy --destroy
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,3)) e4:SetDescription(aux.Stringid(id,3))
e4:SetCategory(CATEGORY_DESTROY+CATEGORY_TOGRAVE) e4:SetCategory(CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_SPSUMMON_SUCCESS) e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
...@@ -45,12 +45,10 @@ function s.initial_effect(c) ...@@ -45,12 +45,10 @@ function s.initial_effect(c)
--set --set
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(id,4)) e5:SetDescription(aux.Stringid(id,4))
e5:SetCategory(CATEGORY_TOGRAVE)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetProperty(EFFECT_FLAG_DELAY) e5:SetProperty(EFFECT_FLAG_DELAY)
e5:SetCode(EVENT_DESTROYED) e5:SetCode(EVENT_DESTROYED)
e5:SetCountLimit(1,id+o*2) e5:SetCountLimit(1,id+o*2)
e5:SetCondition(s.setcon)
e5:SetTarget(s.settg) e5:SetTarget(s.settg)
e5:SetOperation(s.setop) e5:SetOperation(s.setop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
...@@ -77,7 +75,7 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +75,7 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.spfilter(c,tp) function s.spfilter(c,tp)
return c:IsSetCard(0x1c0) and Duel.GetMZoneCount(tp,c)>0 return c:IsSetCard(0x1c0) and not c:IsCode(id) and Duel.GetMZoneCount(tp,c)>0
end end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,s.spfilter,1,REASON_COST,true,e:GetHandler(),tp) end if chk==0 then return Duel.CheckReleaseGroupEx(tp,s.spfilter,1,REASON_COST,true,e:GetHandler(),tp) end
......
...@@ -51,7 +51,7 @@ end ...@@ -51,7 +51,7 @@ end
function s.tdfilter(c) function s.tdfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0x1c0) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeckAsCost() return c:IsFaceupEx() and c:IsSetCard(0x1c0) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeckAsCost()
end end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.tdfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,2,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.tdfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,2,2,nil) local g=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED,0,2,2,nil)
...@@ -72,7 +72,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0xd0) and c:IsType(TYPE_TRAP) and not c:IsType(TYPE_CONTINUOUS) and c:IsSSetable() return c:IsFaceupEx() and c:IsSetCard(0x1c0) and c:IsType(TYPE_TRAP) and not c:IsType(TYPE_CONTINUOUS) and c:IsSSetable()
end end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
......
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