Commit 094c58b5 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent b8239889
--没有你的完美世界 --没有你的完美世界
local s,id,o=GetID() local s,id,o=GetID()
c5012606.MoJin=true s.MoJin=true
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,5012604) aux.AddCodeList(c,5012604)
--Activate --Activate
...@@ -9,6 +9,7 @@ function s.initial_effect(c) ...@@ -9,6 +9,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCost(s.cost) e1:SetCost(s.cost)
e1:SetTarget(s.target) e1:SetTarget(s.target)
e1:SetOperation(s.activate) e1:SetOperation(s.activate)
...@@ -52,14 +53,17 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,14 +53,17 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function s.matfilter2(c) function s.matfilter2(c)
return c:IsCanOverlay() and c:IsType(TYPE_QUICKPLAY) --and c:IsSetCard(0x18c) return c:IsCanOverlay() and c:IsType(TYPE_QUICKPLAY)
end
function s.cf(c)
return Card.IsCanOverlay and not c:IsCode(5012625) and not c:IsCode(5012613) and not c:IsCode(5012617) --Card.IsCanOverlay
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_EXTRA,0,nil,e,tp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_EXTRA,0,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
local sg=g:RandomSelect(tp,1) local sg=g:RandomSelect(tp,1)
local tc=sg:GetFirst() local tc=sg:GetFirst()
local mg=Duel.GetMatchingGroup(Card.IsCanOverlay,tp,LOCATION_DECK+LOCATION_REMOVED,0,nil) local mg=Duel.GetMatchingGroup(s.cf,tp,LOCATION_DECK+LOCATION_REMOVED,0,nil)
if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(1317) e1:SetDescription(1317)
......
--滨面仕上 --滨面仕上
local s,id,o=GetID() local s,id,o=GetID()
c5012609.MoJin=true s.MoJin=true
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,5012604)
--pendulum summon --pendulum summon
aux.EnablePendulumAttribute(c) aux.EnablePendulumAttribute(c)
--tohand --tohand
...@@ -19,10 +18,10 @@ function s.initial_effect(c) ...@@ -19,10 +18,10 @@ function s.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(2) e2:SetDescription(2)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
--e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) --e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,id) e2:SetCountLimit(1,id)
e2:SetHintTiming(0,TIMING_END_PHASE) e2:SetHintTiming(0,TIMING_END_PHASE)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
...@@ -37,7 +36,7 @@ function s.initial_effect(c) ...@@ -37,7 +36,7 @@ function s.initial_effect(c)
e3:SetCode(EVENT_CHAINING) e3:SetCode(EVENT_CHAINING)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e3:SetRange(LOCATION_GRAVE+LOCATION_HAND) e3:SetRange(LOCATION_GRAVE+LOCATION_HAND)
e3:SetCountLimit(1,id) e3:SetCountLimit(1,id+100)
e3:SetTarget(s.gsptg) e3:SetTarget(s.gsptg)
e3:SetOperation(s.gspop) e3:SetOperation(s.gspop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -63,7 +62,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +62,6 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
e1:SetDescription(1110) e1:SetDescription(1110)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetReset(RESET_PHASE+PHASE_STANDBY) e1:SetReset(RESET_PHASE+PHASE_STANDBY)
e1:SetCondition(s.damcon) e1:SetCondition(s.damcon)
...@@ -71,7 +69,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +69,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function s.thfilter(c) function s.thfilter(c)
return c.MoJin==true and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsType(TYPE_PENDULUM) and c:IsAbleToHand()
end end
function s.damcon(e,tp,eg,ep,ev,re,r,rp) function s.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil)
...@@ -106,7 +104,7 @@ end ...@@ -106,7 +104,7 @@ end
function s.gsptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.gsptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(s.eqfilter,tp,LOCATION_REMOVED+LOCATION_EXTRA,0,1,nil) end and Duel.IsExistingMatchingCard(s.eqfilter,tp,LOCATION_EXTRA+LOCATION_REMOVED,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,LOCATION_EXTRA+LOCATION_REMOVED) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,LOCATION_EXTRA+LOCATION_REMOVED)
end end
......
...@@ -56,7 +56,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local mf=ce:GetValue() local mf=ce:GetValue()
sg2=Duel.GetMatchingGroup(cm.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,mf,chkf) sg2=Duel.GetMatchingGroup(cm.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,mf,chkf)
end end
Duel.Hint(HINT_MUSIC,0,aux.Stringid(m,1))
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
local sg=sg1:Clone() local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) end if sg2 then sg:Merge(sg2) 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