Commit ca55caef authored by Tachibana's avatar Tachibana

eme

parent 35b2f8af
Pipeline #9277 passed with stage
in 29 minutes and 40 seconds
No preview for this file type
......@@ -247,7 +247,6 @@ function cm.synop(e,tp,eg,ep,ev,re,r,rp,c,tuner,mg)
c:SetMaterial(g)
Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
g:DeleteGroup()
Duel.Hint(HINT_MUSIC,0,m*16+2)
end
function cm.valcheck(e,c)
local g=c:GetMaterial():Filter(Card.IsType,nil,TYPE_XYZ)
......
......@@ -81,7 +81,7 @@ function cm.exfilter(c,fc)
if c==fc then return false end
return cm.fsfilter(c,fc) and c:GetLevel()==8 and c:IsAbleToRemove()
end
function cm.CheckRecursive(c,mg,sg,exg,tp,fc,chkf)
function cm.CheckRecursive(c,mg,sg,exg,tp,fc,chkf)
if exg and sg:GetCount()<3 and exg:IsContains(c) then return false end
if sg:IsExists(Card.IsRace,1,nil,c:GetRace()) then return false end
sg:AddCard(c)
......@@ -129,7 +129,6 @@ function cm.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
Duel.SetFusionMaterial(sg)
end
function cm.SetMaterial(c,g)
Duel.Hint(HINT_MUSIC,0,m*16+10)
Card.SetMaterial(c,g)
if not g then return end
local rg=g:Filter(function(c) return c:GetFlagEffect(m-20000)>0 end,nil)
......
--梦野·无烬之门
local m=52580001
local cm=_G["c"..m]
function cm.initial_effect(c)
--overlay
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,m)
e1:SetTarget(cm.ovtg)
e1:SetOperation(cm.ovop)
c:RegisterEffect(e1)
--draw
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetCountLimit(1,m+900)
e2:SetCondition(cm.drcon)
e2:SetTarget(cm.drtg)
e2:SetOperation(cm.drop)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EVENT_REMOVE)
c:RegisterEffect(e3)
end
function cm.ovfilter(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ)
end
function cm.ovtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.ovfilter(chkc) and chkc~=e:GetHandler() end
if chk==0 then return Duel.IsExistingTarget(cm.ovfilter,tp,LOCATION_MZONE,0,1,e:GetHandler())
and e:GetHandler():IsCanOverlay() end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,cm.ovfilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
if e:GetHandler():IsLocation(LOCATION_GRAVE) then
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
end
end
function cm.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) then
local og=c:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,Group.FromCards(c))
end
end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsReason(REASON_COST) and re:IsActivated() and re:IsActiveType(TYPE_XYZ)
and c:IsPreviousLocation(LOCATION_OVERLAY)
end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SendtoHand(c,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,c)
end
end
......@@ -4,7 +4,6 @@ local cm=_G["c"..m]
xpcall(function() require("expansions/script/c57300000") end,function() require("script/c57300000") end)
function cm.initial_effect(c)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkAttribute,ATTRIBUTE_DARK),3)
miyuki.AddSummonMusic(c,aux.Stringid(m,1),SUMMON_TYPE_LINK)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
......@@ -47,7 +46,7 @@ end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local zone=bit.band(c:GetLinkedZone(),0x1f)
if re:GetHandler():IsRelateToEffect(re) and zone>0 and re:GetHandler():IsControlerCanBeChanged(false,zone) and Duel.NegateActivation(ev) then
if re:GetHandler():IsRelateToEffect(re) and zone>0 and re:GetHandler():IsControlerCanBeChanged(false,zone) and Duel.NegateActivation(ev) then
Duel.GetControl(re:GetHandler(),tp,0,0,zone)
end
end
......@@ -82,7 +81,7 @@ function cm.disop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local zone=cm.GetSpellLinkedZones(c)
local rc=re:GetHandler()
if rc:IsRelateToEffect(re) and zone>0 and rc:IsSSetable(true,tp,zone) and Duel.NegateActivation(ev) then
if rc:IsRelateToEffect(re) and zone>0 and rc:IsSSetable(true,tp,zone) and Duel.NegateActivation(ev) then
rc:CancelToGrave()
Duel.SSet(tp,rc,tp,false,zone)
Duel.ConfirmCards(1-tp,rc)
......
......@@ -17,14 +17,14 @@ function c9310027.initial_effect(c)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
Duel.RegisterEffect(e2,tp)
--inactivatable
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_DISEFFECT)
e2:SetRange(LOCATION_FZONE)
e2:SetValue(c9310027.effectfilter)
c:RegisterEffect(e2)
--inactivatable
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_DISEFFECT)
e3:SetRange(LOCATION_FZONE)
e3:SetValue(c9310027.effectfilter)
c:RegisterEffect(e3)
--change cost
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
......
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