Commit cba88c4a authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 2dedee68
...@@ -163,14 +163,14 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -163,14 +163,14 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetReset(RESET_EVENT+RESETS_STANDARD) e3:SetReset(RESET_EVENT+RESETS_STANDARD)
e3:SetValue(s.efilter) e3:SetValue(s.efilter)
c:RegisterEffect(e3,true) token:RegisterEffect(e3,true)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE) e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_DIRECT_ATTACK) e4:SetCode(EFFECT_DIRECT_ATTACK)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetReset(RESET_EVENT+RESETS_STANDARD) e4:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e4,true) token:RegisterEffect(e4,true)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
end end
......
...@@ -53,7 +53,7 @@ function s.actcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +53,7 @@ function s.actcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end if chk==0 then return not e:GetHandler():IsPublic() end
end end
function s.th(c) function s.th(c)
return c:IsFaceupEx() and (c:IsCode(16138001) or aux.IsCodeListed(c,16138001)) and c:IsAbleToHand() return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and (c:IsCode(16138001) or aux.IsCodeListed(c,16138001)) and c:IsAbleToHand()
end end
function s.acttg(e,tp,eg,ep,ev,re,r,rp,chk) function s.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.th,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.th,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
......
--玉桂·花信 --玉桂·花信
function c16372008.initial_effect(c) function c16372008.initial_effect(c)
--special summon/set --can not diseffect
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
...@@ -60,7 +60,7 @@ function c16372008.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,7 @@ function c16372008.con(e,tp,eg,ep,ev,re,r,rp)
end end
function c16372008.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c16372008.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() if chk==0 then return c:IsAbleToRemoveAsCost()
and Duel.GetCustomActivityCount(16372008,tp,ACTIVITY_SPSUMMON)==0 end and Duel.GetCustomActivityCount(16372008,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
...@@ -70,7 +70,7 @@ function c16372008.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,7 +70,7 @@ function c16372008.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetTarget(c16372008.splimitoath) e1:SetTarget(c16372008.splimitoath)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.SendtoGrave(c,REASON_COST) Duel.Remove(c,POS_FACEUP,REASON_COST)
end end
function c16372008.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c16372008.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,16372008)==0 end if chk==0 then return Duel.GetFlagEffect(tp,16372008)==0 end
......
...@@ -22,6 +22,7 @@ function Suyu_bh.changecode(tc) ...@@ -22,6 +22,7 @@ function Suyu_bh.changecode(tc)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_CODE) e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(sidecode) e1:SetValue(sidecode)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+0x7e0000) e1:SetReset(RESET_EVENT+0x7e0000)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
...@@ -37,6 +38,7 @@ function Suyu_bh.changecode2(tc) ...@@ -37,6 +38,7 @@ function Suyu_bh.changecode2(tc)
local e1=Effect.CreateEffect(tc) local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_CODE) e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(sidecode) e1:SetValue(sidecode)
e1:SetReset(RESET_EVENT+0x7e0000) e1:SetReset(RESET_EVENT+0x7e0000)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
......
--伏龙王-瑟拉米 --伏龙王-瑟拉米
function c50218535.initial_effect(c) function c50218535.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,nil,5,2) aux.AddXyzProcedure(c,nil,6,2)
c:EnableReviveLimit() c:EnableReviveLimit()
--remove --remove
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
--伏龙王-沃凯诺 --伏龙王-沃凯诺
function c50218540.initial_effect(c) function c50218540.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,nil,5,2) aux.AddXyzProcedure(c,nil,7,2)
c:EnableReviveLimit() c:EnableReviveLimit()
--atk --atk
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
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