Commit 73a34056 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent c5e08d74
expansions/pics/50218110.jpg

69.7 KB | W: | H:

expansions/pics/50218110.jpg

89 KB | W: | H:

expansions/pics/50218110.jpg
expansions/pics/50218110.jpg
expansions/pics/50218110.jpg
expansions/pics/50218110.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -53,6 +53,35 @@ function c19023161.initial_effect(c)
c:RegisterEffect(e3)
Duel.AddCustomActivityCounter(19023161,ACTIVITY_SPSUMMON,c19023161.counterfilter)
end
function c19023161.counterfilter(c)
return c:IsSetCard(0x7a0)
end
function c19023161.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and (Duel.CheckLPCost(tp,1000) or Duel.GetLP(tp)<4000)
end
function c19023161.hspop(e,tp,eg,ep,ev,re,r,rp,c)
if Duel.GetLP(tp)>=4000 then Duel.PayLPCost(tp,1000) end
end
function c19023161.spcost(e,c,tp)
return Duel.GetCustomActivityCount(19023161,tp,ACTIVITY_SPSUMMON)==0
end
function c19023161.spop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetTargetRange(1,0)
e1:SetTarget(c19023161.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c19023161.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x7a0)
end
function c19023161.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end
Duel.PayLPCost(tp,1000)
......@@ -99,33 +128,4 @@ function c19023161.rmcon(e,tp,eg,ep,ev,re,r,rp)
end
function c19023161.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEDOWN,REASON_EFFECT)
end
function c19023161.counterfilter(c)
return c:IsSetCard(0x7a0)
end
function c19023161.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and (Duel.CheckLPCost(tp,1000) or Duel.GetLP(tp)<4000)
end
function c19023161.hspop(e,tp,eg,ep,ev,re,r,rp,c)
if Duel.GetLP(tp)>=4000 then Duel.PayLPCost(tp,1000) end
end
function c19023161.spcost(e,c,tp)
return Duel.GetCustomActivityCount(19023161,tp,ACTIVITY_SPSUMMON)==0
end
function c19023161.spop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetTargetRange(1,0)
e1:SetTarget(c19023161.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c19023161.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x7a0)
end
\ No newline at end of file
......@@ -53,6 +53,45 @@ function c19023167.initial_effect(c)
c:RegisterEffect(e3)
Duel.AddCustomActivityCounter(19023167,ACTIVITY_SPSUMMON,c19023167.counterfilter)
end
function c19023167.counterfilter(c)
return c:IsSetCard(0x7a0)
end
function c19023167.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and (Duel.CheckLPCost(tp,1000)
or Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,e:GetHandlerPlayer(),LOCATION_HAND,0,1,nil))
end
function c19023167.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local b1=Duel.CheckLPCost(tp,1000)
local b2=Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,e:GetHandlerPlayer(),LOCATION_HAND,0,1,nil)
local op=aux.SelectFromOptions(tp,{b1,aux.Stringid(19023167,0),1},{b2,aux.Stringid(19023167,1),2})
if op==1 then
Duel.PayLPCost(tp,1000)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end
end
function c19023167.spcost(e,c,tp)
return Duel.GetCustomActivityCount(19023167,tp,ACTIVITY_SPSUMMON)==0
end
function c19023167.spop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetTargetRange(1,0)
e1:SetTarget(c19023167.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c19023167.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x7a0)
end
function c19023167.thfilter(c)
return c:IsSetCard(0x7a0) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
......@@ -92,43 +131,4 @@ function c19023167.rmcon(e,tp,eg,ep,ev,re,r,rp)
end
function c19023167.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEDOWN,REASON_EFFECT)
end
function c19023167.counterfilter(c)
return c:IsSetCard(0x7a0)
end
function c19023167.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and (Duel.CheckLPCost(tp,1000)
or Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,e:GetHandlerPlayer(),LOCATION_HAND,0,1,nil))
end
function c19023167.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local b1=Duel.CheckLPCost(tp,1000)
local b2=Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,e:GetHandlerPlayer(),LOCATION_HAND,0,1,nil)
local op=aux.SelectFromOptions(tp,{b1,aux.Stringid(19023167,0),1},{b2,aux.Stringid(19023167,1),2})
if op==1 then
Duel.PayLPCost(tp,1000)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end
end
function c19023167.spcost(e,c,tp)
return Duel.GetCustomActivityCount(19023167,tp,ACTIVITY_SPSUMMON)==0
end
function c19023167.spop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetTargetRange(1,0)
e1:SetTarget(c19023167.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c19023167.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x7a0)
end
\ No newline at end of file
......@@ -35,9 +35,9 @@ function c19023173.initial_effect(c)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetCountLimit(1,19023173)
e2:SetCost(c19023173.cost)
e2:SetCondition(c19023173.rmcon)
e2:SetTarget(c19023173.rmtg)
e2:SetOperation(c19023173.rmop)
e2:SetCondition(c19023173.rmcon2)
e2:SetTarget(c19023173.rmtg2)
e2:SetOperation(c19023173.rmop2)
c:RegisterEffect(e2)
--remove
local e3=Effect.CreateEffect(c)
......@@ -75,7 +75,8 @@ function c19023173.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,1000)
end
function c19023173.spfilter(c,e,tp)
return c:IsSetCard(0x7a0) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP)
return c:IsSetCard(0x7a0) and c:IsType(TYPE_MONSTER) and c:IsFaceup()
and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP)
end
function c19023173.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c19023173.spfilter,tp,LOCATION_REMOVED,0,1,nil,e,tp) end
......@@ -92,17 +93,24 @@ end
function c19023173.cfilter(c)
return c:IsSetCard(0x7a0) and c:IsFaceup()
end
function c19023173.rmcon(e,tp,eg,ep,ev,re,r,rp)
function c19023173.rmcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c19023173.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c19023173.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
function c19023173.rmtg2(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_HAND,nil)
if chk==0 then return g:GetCount()>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end
function c19023173.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_HAND,1,1,nil)
function c19023173.rmop2(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
local fg=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD+LOCATION_GRAVE)
local g
if #hg>0 and (#fg==0 or Duel.SelectOption(tp,aux.Stringid(19023173,3),aux.Stringid(19023173,4))==0) then
g=hg:RandomSelect(tp,1)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,1,nil)
end
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
......
......@@ -3,7 +3,7 @@ function c19023180.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFun2(c,c19023180.ffilter1,c19023180.ffilter2,true)
aux.AddContactFusionProcedure(c,Card.IsAbleToRemoveAsCost,LOCATION_ONFIELD,0,Duel.Remove,POS_FACEUP,REASON_COST)
aux.AddContactFusionProcedure(c,Card.IsAbleToRemoveAsCost,LOCATION_MZONE,0,Duel.Remove,POS_FACEUP,REASON_COST)
--spsummon condition
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
......@@ -19,7 +19,7 @@ function c19023180.initial_effect(c)
e01:SetCost(c19023180.spcost)
e01:SetOperation(c19023180.spop)
c:RegisterEffect(e01)
--indes
--actlimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
......@@ -40,7 +40,7 @@ function c19023180.initial_effect(c)
local e22=e2:Clone()
e22:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e22)
--actlimit
--actlimit2
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_ACTIVATE)
......@@ -54,10 +54,14 @@ function c19023180.initial_effect(c)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_RECOVER)
e4:SetRange(LOCATION_FZONE)
e4:SetRange(LOCATION_MZONE)
e4:SetCondition(c19023180.rmcon)
e4:SetOperation(c19023180.rmop)
c:RegisterEffect(e4)
Duel.AddCustomActivityCounter(19023180,ACTIVITY_SPSUMMON,c19023180.counterfilter)
end
function c19023180.counterfilter(c)
return c:IsSetCard(0x7a0)
end
function c19023180.ffilter1(c)
return c:IsFusionSetCard(0x7a0)
......@@ -68,19 +72,38 @@ end
function c19023180.spslimit(e,se,sp,st)
return e:GetHandler():GetLocation()~=LOCATION_EXTRA
end
function c19023180.spcost(e,c,tp)
return Duel.GetCustomActivityCount(19023180,tp,ACTIVITY_SPSUMMON)==0
end
function c19023180.spop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetTargetRange(1,0)
e1:SetTarget(c19023180.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c19023180.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x7a0)
end
function c19023180.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end
function c19023180.operation(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetTargetRange(1,1)
e1:SetValue(c19023180.actlimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1,true)
end
function c19023180.actlimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsLocation(LOCATION_ONFIELD)
......@@ -92,23 +115,6 @@ end
function c19023180.actlimit2(e,re,tp)
return re:IsActiveType(TYPE_MONSTER)
end
function c19023180.spcost(e,c,tp)
return Duel.GetCustomActivityCount(19023180,tp,ACTIVITY_SPSUMMON)==0
end
function c19023180.spop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetTargetRange(1,0)
e1:SetTarget(c19023180.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c19023180.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x7a0)
end
function c19023180.rmcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp
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