Commit 8a70d569 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 93c37f30
......@@ -112,7 +112,7 @@ function cm.lpop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(1,0)
e1:SetTargetRange(1,1)
e1:SetValue(cm.aclimit)
e1:SetLabel(rc:GetCode())
e1:SetReset(RESET_PHASE+PHASE_END,2)
......
......@@ -30,8 +30,7 @@ function c33703023.checkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c33703023.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return 0 end
Duel.ConfirmCards(1-tp,c)
if chk==0 then return not e:GetHandler():IsPublic() end
end
function c33703023.filter(c,num)
local num=Duel.GetFlagEffect(c,id+o)
......
--黄金螺旋-对补“5”
local s,id=GetID()
function s.sprule(c)
aux.AddLinkProcedure(c,s.mfilter,2,2,s.lcheck)
aux.AddLinkProcedure(c,s.mfilter,2,2,s.lcheck)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_MUST_USE_MZONE)
......@@ -14,7 +14,7 @@ function s.sprule(c)
c:RegisterEffect(e1)
end
function s.mfilter(c)
return c:IsLinkType(TYPE_LINK)
return c:IsLinkType(TYPE_LINK)
end
function s.lcheck(g)
return g:IsExists(Card.IsRace,1,nil,RACE_PSYCHO)
......@@ -23,12 +23,12 @@ function s.zonelimit(e)
return 0x1f001f | (0x600060 & ~e:GetHandler():GetLinkedZone())
end
function s.linksummon(c)
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE+CATEGORY_TOEXTRA)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id)
e1:SetCountLimit(1,id)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
......@@ -39,10 +39,10 @@ function s.mgfilter(c,e)
and ((c:IsAbleToGrave() and c:IsLocation(LOCATION_MZONE)) or (c:IsLocation(LOCATION_REMOVED) and c:IsAbleToExtra()))
end
function s.lfilter(c,e,tp)
return c:IsCode(47380008) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false)
return c:IsCode(47380008) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end
function s.fselect(g,tp)
return g:CheckWithSumEqual(Card.GetLinkMarker,0x1ef,2,2) and Duel.GetLocationCountFromEx(tp,tp,g)
return g:CheckWithSumEqual(Card.GetLinkMarker,0x1ef,2,2)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetMatchingGroup(s.mgfilter,tp,LOCATION_MZONE+LOCATION_REMOVED,0,nil,e)
......@@ -73,14 +73,14 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.immune(c)
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,1))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,id-1000)
e1:SetCondition(s.imcon)
e1:SetCost(aux.bfgcost)
e1:SetCost(aux.bfgcost)
e1:SetTarget(s.imtg)
e1:SetOperation(s.imop)
c:RegisterEffect(e1)
......@@ -93,28 +93,28 @@ function s.imtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_MZONE,0,1,nil,TYPE_LINK) end
end
function s.imop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,Card.IsType,tp,LOCATION_MZONE,0,1,1,nil,TYPE_LINK)
if #g>0 then
local tc=g:GetFirst()
if tc:IsFaceup() and tc:IsControler(tp) then
if #g>0 then
local tc=g:GetFirst()
if tc:IsFaceup() and tc:IsControler(tp) then
Duel.HintSelection(g)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetValue(s.efilter)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
e1:SetOwnerPlayer(tp)
tc:RegisterEffect(e1)
end
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetValue(s.efilter)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
e1:SetOwnerPlayer(tp)
tc:RegisterEffect(e1)
end
end
end
function s.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
function s.initial_effect(c)
s.sprule(c)
s.linksummon(c)
s.immune(c)
s.linksummon(c)
s.immune(c)
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