Commit afe27a11 authored by Tachibana's avatar Tachibana

eme

parent d9d47c0c
Pipeline #8262 passed with stages
in 22 minutes and 49 seconds
......@@ -1529,6 +1529,7 @@
75126432 1 --械龙机·重装
75125451 0 --械龙铠·辉凤铠
75125452 0 --械龙铠·传说的数据核
75124570 0 --数据融合场
#756
75640052 0 --旅人 伊蕾娜
75646054 1 --忆梦长廊 琪亚娜
......
......@@ -79,7 +79,8 @@ function cm.seop(e,tp,eg,ep,ev,re,r,rp)
end
if e:GetLabel()~=1 then return end
local c=e:GetHandler()
local cg=Duel.GetMatchingGroup(cm.filctr,tp,0,LOCATION_MZONE,nil)
local cp=c:GetControler()
local cg=Duel.GetMatchingGroup(cm.filctr,cp,0,LOCATION_MZONE,nil)
if c:IsRelateToEffect(e) and cm.filctr(c) and cg:GetCount()>0
and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.BreakEffect()
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -14,7 +14,6 @@ function cm.initial_effect(c)
e1:SetCode(EVENT_CHAIN_SOLVING)
e1:SetRange(LOCATION_FZONE)
e1:SetCondition(cm.cecondition)
e1:SetTarget(cm.cetarget)
e1:SetOperation(cm.ceoperation)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
......
--【背景音台】Shelter
function cm.initial_effect(c)
function c33701502.initial_effect(c)
--activate
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN)
e0:SetTarget(cm.target)
e0:SetOperation(cm.activate)
e0:SetTarget(c33701502.target)
e0:SetOperation(c33701502.activate)
c:RegisterEffect(e0)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_FZONE)
e1:SetOperation(cm.rcop)
e1:SetOperation(c33701502.rcop)
c:RegisterEffect(e1)
--cannot be destroyed
local e7=Effect.CreateEffect(c)
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e8:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e8:SetRange(LOCATION_FZONE)
e8:SetTargetRange(1,0)
e8:SetTarget(cm.setlimit)
e8:SetTarget(c33701502.setlimit)
c:RegisterEffect(e8)
local e9=Effect.CreateEffect(c)
e9:SetType(EFFECT_TYPE_FIELD)
......@@ -37,25 +37,25 @@ function cm.initial_effect(c)
e9:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e9:SetRange(LOCATION_FZONE)
e9:SetTargetRange(1,0)
e9:SetValue(cm.actlimit)
e9:SetValue(c33701502.actlimit)
c:RegisterEffect(e9)
if not cm.global_check then
cm.global_check=true
cm[0]=0
if not c33701502.global_check then
c33701502.global_check=true
c33701502[0]=0
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_TO_GRAVE)
ge1:SetOperation(cm.checkop)
ge1:SetOperation(c33701502.checkop)
Duel.RegisterEffect(ge1,0)
local ge3=Effect.CreateEffect(c)
ge3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge3:SetCode(EVENT_PHASE_START+PHASE_DRAW)
ge3:SetOperation(cm.clear)
ge3:SetOperation(c33701502.clear)
Duel.RegisterEffect(ge3,0)
end
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
function c33701502.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
--to grave
......@@ -66,44 +66,44 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_FZONE)
e1:SetOperation(cm.tgop)
e1:SetOperation(c33701502.tgop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,6)
c:SetTurnCounter(0)
c:RegisterEffect(e1)
end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
function c33701502.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=c:GetTurnCounter()
ct=ct+1
c:SetTurnCounter(ct)
if ct==6 then Duel.SendtoGrave(c,REASON_RULE) end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
function c33701502.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(m,2))
end
function cm.rccon(e,tp,eg,ep,ev,re,r,rp)
return cm[0]>0
function c33701502.rccon(e,tp,eg,ep,ev,re,r,rp)
return c33701502[0]>0
end
function cm.rcop(e,tp,eg,ep,ev,re,r,rp)
if Duel.Recover(tp,cm[0],REASON_EFFECT)>=2500 then
function c33701502.rcop(e,tp,eg,ep,ev,re,r,rp)
if Duel.Recover(tp,c33701502[0],REASON_EFFECT)>=2500 then
Duel.Draw(tp,1,REASON_EFFECT)
end
end
function cm.setlimit(e,c,tp)
function c33701502.setlimit(e,c,tp)
return c:IsType(TYPE_FIELD)
end
function cm.actlimit(e,re,tp)
function c33701502.actlimit(e,re,tp)
return re:IsActiveType(TYPE_FIELD) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
function c33701502.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
while tc do
if tc:IsType(TYPE_MONSTER) then
cm[0]=cm[0]+tc:GetLevel()+tc:GetRank()
c33701502[0]=c33701502[0]+tc:GetLevel()+tc:GetRank()
end
tc=eg:GetNext()
end
end
function cm.clear(e,tp,eg,ep,ev,re,r,rp)
cm[0]=0
function c33701502.clear(e,tp,eg,ep,ev,re,r,rp)
c33701502[0]=0
end
......@@ -3,13 +3,13 @@ function c33701511.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetCondition(cm.discon)
e1:SetCondition(c33701511.discon)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetValue(1)
e2:SetCondition(cm.discon)
e2:SetCondition(c33701511.discon)
c:RegisterEffect(e2)
--spsummon
local e1=Effect.CreateEffect(c)
......@@ -17,44 +17,44 @@ function c33701511.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.spcost)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
e1:SetCost(c33701511.spcost)
e1:SetTarget(c33701511.sptg)
e1:SetOperation(c33701511.spop)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(cm.condition)
e2:SetOperation(cm.operation)
e2:SetCondition(c33701511.condition)
e2:SetOperation(c33701511.operation)
c:RegisterEffect(e2)
if not cm.global_check then
cm.global_check=true
cm[0]=0
cm[1]=0
if not c33701511.global_check then
c33701511.global_check=true
c33701511[0]=0
c33701511[1]=0
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_CHAIN_SOLVED)
ge1:SetOperation(cm.checkop)
ge1:SetOperation(c33701511.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function cm.discon(e)
return bit.band(cm[e:GetControler()],0x1<<(e:GetHandler():GetLevel()-1))>0
function c33701511.discon(e)
return bit.band(c33701511[e:GetControler()],0x1<<(e:GetHandler():GetLevel()-1))>0
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
function c33701511.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c33701511.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,33701517,0,0x4011,1500,1500,4,RACE_FAIRY,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
function c33701511.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,33701517,0,0x4011,1500,1500,4,RACE_FAIRY,ATTRIBUTE_LIGHT) then return end
local token=Duel.CreateToken(tp,33701517)
......@@ -65,22 +65,22 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCondition(cm.atcon)
e1:SetCost(cm.spcost)
e1:SetTarget(cm.attg)
e1:SetOperation(cm.atop)
e1:SetCondition(c33701511.atcon)
e1:SetCost(c33701511.spcost)
e1:SetTarget(c33701511.attg)
e1:SetOperation(c33701511.atop)
token:RegisterEffect(e1,true)
end
function cm.indfilter(c)
function c33701511.indfilter(c)
return c:IsCode(33701507) and c:IsFaceup()
end
function cm.atcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.indfilter,tp,LOCATION_ONFIELD,0,1,nil)
function c33701511.atcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c33701511.indfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
function cm.attg(e,tp,eg,ep,ev,re,r,rp,chk)
function c33701511.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
end
function cm.atop(e,tp,eg,ep,ev,re,r,rp)
function c33701511.atop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
if g:GetCount()==0 then return end
local sc=g:GetFirst()
......@@ -97,19 +97,19 @@ function cm.atop(e,tp,eg,ep,ev,re,r,rp)
sc=g:GetNext()
end
end
function cm.filter(c)
function c33701511.filter(c)
return c:IsSetCard(0x9440) and c:IsAbleToHand()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
return Duel.IsExistingMatchingCard(cm.indfilter,tp,LOCATION_ONFIELD,0,1,nil)
function c33701511.condition(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
return Duel.IsExistingMatchingCard(c33701511.indfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
function c33701511.operation(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetValue(cm.aclimit)
e1:SetValue(c33701511.aclimit)
e1:SetReset(RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,1)
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(e:GetHandler())
......@@ -120,14 +120,14 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetTargetRange(0,1)
Duel.RegisterEffect(e2,tp)
end
function cm.aclimit(e,re,tp)
function c33701511.aclimit(e,re,tp)
return re:GetHandler():IsOnField() or re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
function c33701511.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
while tc do
if tc:IsLevelAbove(1) and tc:IsSetCard(0x9440) then
cm[ep]=bit.bor(cm[ep],0x1<<tc:GetLevel())
c33701511[ep]=bit.bor(c33701511[ep],0x1<<tc:GetLevel())
end
tc=eg:GetNext()
end
......
......@@ -43,10 +43,10 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_REMOVED,0,1,nil) and Duel.SelectYesNo(m,aux.Stringid(m,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,0,1,1,nil)
if Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_REMOVED,0,1,nil) and Duel.SelectYesNo(m,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,0,1,1,nil)
end
local tc=g:GetFirst()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
......
......@@ -43,10 +43,10 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_REMOVED,0,1,nil) and Duel.SelectYesNo(m,aux.Stringid(m,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,0,1,1,nil)
if Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_REMOVED,0,1,nil) and Duel.SelectYesNo(m,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_REMOVED,0,1,1,nil)
end
local tc=g:GetFirst()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
......
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