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

byd

parent 54d80ed1
--倾·物语
-- 倾·物语
function c1000373.initial_effect(c)
c:SetUniqueOnField(1,0,1000373)
--Activate
-- Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
......@@ -9,7 +9,7 @@ function c1000373.initial_effect(c)
e1:SetTarget(c1000373.target1)
e1:SetOperation(c1000373.operation)
c:RegisterEffect(e1)
--remove
-- remove
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(1000373,1))
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
......@@ -22,7 +22,7 @@ function c1000373.initial_effect(c)
e2:SetTarget(c1000373.target2)
e2:SetOperation(c1000373.operation)
c:RegisterEffect(e2)
--race
-- race
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_SZONE)
......
--紫雨岛的秋意渐浓
-- 紫雨岛的秋意渐浓
local m=1090008
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
function cm.initial_effect(c)
aux.AddCodeList(c,1090000)
--Activate
-- Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......
--紫雨岛的写意画作
-- 紫雨岛的写意画作
local m=1090009
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
function cm.initial_effect(c)
aux.AddCodeList(c,1090000)
--negate
-- negate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......
--紫雨岛的温柔以待
-- 紫雨岛的温柔以待
local m=1090010
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
function cm.initial_effect(c)
aux.AddCodeList(c,1090000)
--Activate
-- Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......
--惊雨『台风骤雨』
-- 惊雨『台风骤雨』
local m=1141202
local cm=_G["c"..m]
--
--
function c1141202.initial_effect(c)
--
--
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_HANDES+CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -12,7 +12,7 @@ function c1141202.initial_effect(c)
e1:SetTarget(c1141202.tg1)
e1:SetOperation(c1141202.op1)
c:RegisterEffect(e1)
--
--
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TODECK)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
......@@ -22,9 +22,9 @@ function c1141202.initial_effect(c)
e2:SetTarget(c1141202.tg2)
e2:SetOperation(c1141202.op2)
c:RegisterEffect(e2)
--
--
end
--
--
function c1141202.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_MZONE,0,1,nil) end
end
......@@ -45,7 +45,7 @@ function c1141202.op1(e,tp,eg,ep,ev,re,r,rp)
end
end
end
--
--
function c1141202.con2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return bit.band(r,0x4040)~=0 and c:IsPreviousLocation(LOCATION_HAND)
......@@ -64,4 +64,4 @@ function c1141202.op2(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
end
end
--
\ No newline at end of file
--
\ No newline at end of file
......@@ -25,7 +25,7 @@ end
function s.atktg(e,c)
if c:GetBaseAttack()~=35 then return false end
local tp=e:GetHandlerPlayer()
return aux.GetColumn(c,tp)==e:GetHandler():GetSequence()
return c:IsType(TYPE_FUSION) and aux.GetColumn(c,tp)==e:GetHandler():GetSequence()
end
......
......@@ -138,8 +138,7 @@ end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 or c:IsCanBeSpecialSummoned(e,0,tp,false,false)) then return end
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0
and Duel.GetFlagEffect(tp,id)==0 then
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
......@@ -153,11 +152,14 @@ function s.rmfilter(c)
return c:IsAbleToRemove() and c:IsFacedown()
end
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id)
local g=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_EXTRA,0,nil)
local ct=math.min(#g,4)
if ct>0 then
local sg=g:RandomSelect(tp,ct)
Duel.Remove(sg,POS_FACEDOWN,REASON_EFFECT)
if Duel.GetFlagEffect(tp,id)==0 then
Duel.Hint(HINT_CARD,0,id)
local g=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_EXTRA,0,nil)
local ct=math.min(#g,4)
if ct>0 then
local sg=g:RandomSelect(tp,ct)
Duel.Remove(sg,POS_FACEDOWN,REASON_EFFECT)
end
end
e:Reset()
end
\ No newline at end of file
......@@ -51,7 +51,7 @@ function s.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,e:GetHandler(),1,0,0)
end
function s.tktg(e,tp,eg,ep,ev,re,r,rp)
function s.tkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsExtraDeckMonster() then
Duel.SendtoDeck(c,nil,SEQ_DECKTOP,REASON_EFFECT)
......
......@@ -23,7 +23,7 @@ function s.searchcard(c)
c:RegisterEffect(e2)
end
function s.searchfilter(c)
return c:IsSetCard(0x5527) and c:IsAbleToHand()
return c:IsRace(RACE_ROCK) and c:IsLevel(1) and c:IsAbleToHand()
end
function s.seatg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -31,7 +31,7 @@ function s.seatg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.seaop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,id)==0 then return end
local p=e:GetOwner()
local p=e:GetHandler():GetOwner()
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(p,s.searchfilter,p,LOCATION_DECK,0,1,1,nil)
if #g>0 then
......@@ -79,7 +79,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.Destroy(dg,REASON_EFFECT)~=0 and #sg>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=sg:Select(tp,1,1,nil):GetFirst()
if sc and Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP)~=0 then
if sc and Duel.SpecialSummon(sc,0,tp,1-tp,false,false,POS_FACEUP)~=0 then
--
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
......
--时光酒桌 嘉月
-- 时光酒桌 嘉月
local m=60002009
local cm=_G["c"..m]
timeTable=timeTable or {}
--set self
-- set self
function timeTable.set(c,code,extra)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
......@@ -33,7 +33,7 @@ function timeTable.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
end
function timeTable.getCounter(c)
--get counter type
-- get counter type
local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_CHANGE_TYPE)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -41,7 +41,7 @@ function timeTable.getCounter(c)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET)
e1:SetValue(TYPE_TRAP+TYPE_COUNTER)
c:RegisterEffect(e1)
--get effect by counter
-- get effect by counter
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_QUICK_O+EFFECT_TYPE_ACTIVATE)
......@@ -53,7 +53,7 @@ function timeTable.getCounter(c)
e2:SetOperation(timeTable.counterEffectOperation)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e2)
--cant use counter effect to turn end
-- cant use counter effect to turn end
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_TRIGGER)
......@@ -132,16 +132,16 @@ function timeTable.immue(c)
end
function timeTable.counterEffectOperation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--spsum
-- spsum
if c:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
--immue
-- immue
timeTable.immue(c)
--remove
-- remove
local g=Duel.SelectMatchingCard(tp,timeTable.removeFilter,tp,LOCATION_DECK,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end
end
--spsummon
-- spsummon
function timeTable.spsummon(c,code,extra3,extra5)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......@@ -229,7 +229,7 @@ function timeTable.checkop(e,tp,eg,ep,ev,re,r,rp)
local p=re:GetHandlerPlayer()
Duel.RegisterFlagEffect(p,m,RESET_PHASE+PHASE_END,0,1)
end
--spell2
-- spell2
function timeTable.spell(c,extra3,extra5)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60002021,2))
......@@ -277,13 +277,13 @@ function timeTable.SpellOperation(extra3,extra5)
end
end
if not cm then return end
---------------------------------------
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
function cm.initial_effect(c)
local e1=timeTable.set(c,m,cm.extraMove)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.setf(c)
return c:IsCode(60002024) and not c:IsForbidden()
end
......@@ -297,7 +297,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3))
......
--时光酒桌 花月
-- 时光酒桌 花月
local m=60002010
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.stfil(c)
return not c:IsCode(60002010) and c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
end
......@@ -24,7 +24,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(ssg,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3))
......
--时光酒桌 辰月
-- 时光酒桌 辰月
local m=60002011
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.extraMove(e,tp)
local c=e:GetHandler()
if Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
......@@ -16,7 +16,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3))
......
--时光酒桌 乾月
-- 时光酒桌 乾月
local m=60002012
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.rmfil(c)
return c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
......@@ -20,7 +20,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3))
......
--时光酒桌 幕月
-- 时光酒桌 幕月
local m=60002013
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.stfil(c)
return c:IsFaceup() and c:IsCanChangePosition()
end
......@@ -20,7 +20,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,3))
......
--时光酒桌 荷月
-- 时光酒桌 荷月
local m=60002014
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.cpfil(c)
return c:IsAttackPos() and c:IsCanChangePosition()
end
......@@ -20,7 +20,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,3))
......
--时光酒桌 相月
-- 时光酒桌 相月
local m=60002015
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.thfil(c)
return c:IsSetCard(0x3629) and not c:IsCode(m) and c:IsAbleToHand()
end
......@@ -21,7 +21,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3))
......
--时光酒桌 桂月
-- 时光酒桌 桂月
local m=60002016
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.tgtfil(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x3629)
end
......@@ -23,7 +23,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3))
......@@ -80,7 +80,7 @@ function cm.gop(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(cm.gxgop)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
--
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
......
--时光酒桌 菊月
-- 时光酒桌 菊月
local m=60002017
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.thfil(c)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0x3629)
end
......@@ -21,7 +21,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3))
......@@ -58,7 +58,7 @@ function cm.addop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()<=0 then return end
local tc=g:GetFirst()
while tc do
--
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL)
......@@ -85,7 +85,7 @@ function cm.gtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.gop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAINING)
......@@ -93,7 +93,7 @@ function cm.gop(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(cm.gxgop)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
--
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
......
--时光酒桌 坤月
-- 时光酒桌 坤月
local m=60002018
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=timeTable.spsummon(c,m,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.thfil(c)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0x3629)
end
......@@ -31,7 +31,7 @@ function cm.extraMove(e,tp)
end
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
--e2
-- e2
function cm.extra3(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3))
......@@ -87,7 +87,7 @@ function cm.gcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.gop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAINING)
......@@ -95,7 +95,7 @@ function cm.gop(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(cm.gxgop)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
--
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
......
--时光酒桌 意识
-- 时光酒桌 意识
local m=60002021
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -16,7 +16,7 @@ function cm.initial_effect(c)
timeTable.spell(c,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.chlimit(e,ep,tp)
return tp==ep
end
......@@ -67,7 +67,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
Duel.SSet(tp,sc)
end
end
--e2
-- e2
function cm.extra3(e,tp)
local g=Duel.GetMatchingGroup(cm.setfilter,tp,LOCATION_HAND,0,nil)
local ct=math.min(Duel.GetLocationCount(tp,LOCATION_SZONE),g:GetCount())
......
--时光酒桌 年华
-- 时光酒桌 年华
local m=60002022
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
timeTable.spell(c,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.actg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=10 end
if Duel.GetMatchingGroup(Card.IsFacedown,tp,LOCATION_ONFIELD,0,nil):GetCount()>=3 then
......@@ -39,7 +39,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<10 then return end
Duel.ConfirmDecktop(tp,10)
local g=Duel.GetDecktopGroup(tp,10)
local count=g:FilterCount(cm.ckfil,nil)--counter and 0x3629
local count=g:FilterCount(cm.ckfil,nil)-- counter and 0x3629
local cg=Group.CreateGroup()
if count>=0 and g:FilterCount(cm.thfil1,nil)>0 then
local tc=g:FilterSelect(tp,cm.thfil1,1,1,nil):GetFirst()
......@@ -67,7 +67,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g3)
end
end
--e2
-- e2
function cm.setf(c)
return c:IsSSetable() and c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER)
end
......
--时光酒桌 刹那
-- 时光酒桌 刹那
local m=60002023
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -16,7 +16,7 @@ function cm.initial_effect(c)
timeTable.spell(c,cm.extra3,cm.extra5)
timeTable.globle(c)
end
--e1
-- e1
function cm.accost(e,tp,eg,ep,ev,re,r,rp,chk)
local rc=Duel.GetMatchingGroupCount(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil)
local rh=Duel.GetMatchingGroupCount(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,nil)
......@@ -82,7 +82,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
--e2
-- e2
function cm.thfil(c)
return c:IsAbleToHand() and (c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER))
end
......
--时光酒桌 门扉
-- 时光酒桌 门扉
local m=60002024
local cm=_G["c"..m]
Duel.LoadScript("c60002009.lua")
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e5)
timeTable.globle(c)
end
--e1
-- e1
function cm.setfilter(c)
return c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER)
end
......@@ -77,7 +77,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(sg,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
end
--e2,3,4
-- e2,3,4
function cm.condition3(e,tp,eg,ep,ev,re,r,rp)
local x=Duel.GetFlagEffect(tp,60002009)
return x>=2
......
......@@ -29,7 +29,7 @@ function c65810070.filter(c)
return c:IsSetCard(0xa31) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end
function c65810070.filter1(c,e,tp)
return c:IsCode(65810055)
return c:IsCode(65810055) and c:IsCanBeSpecialSummoned(e,0,tp,true,true)
end
function c65810070.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65810070.filter,tp,LOCATION_DECK,0,1,nil) end
......@@ -38,7 +38,7 @@ function c65810070.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST)
end
function c65810070.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65810070.filter1,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end
if chk==0 then return Duel.IsExistingMatchingCard(c65810070.filter1,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND)
end
function c65810070.activate1(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -29,7 +29,7 @@ function c75646616.thfilter(c)
return c:IsCode(75646600) and c:IsAbleToHand()
end
function c75646616.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c75646616.tgfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(c75646616.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c75646616.tgfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end
......@@ -37,7 +37,7 @@ function c75646616.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c75646616.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
local sg=Duel.GetMatchingGroup(c75646616.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil)
if g:GetCount()>0 and Duel.SendtoGrave(g,REASON_EFFECT)>0 and Duel.SelectYesNo(tp,aux.Stringid(75646616,3)) then
if g:GetCount()>0 and Duel.SendtoGrave(g,REASON_EFFECT)>0 and sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(75646616,3)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g1=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c75646616.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
......
--湖畔的温柔乡
-- 湖畔的温柔乡
local m=81010036
local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
function cm.initial_effect(c)
--activate
-- activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
--gain atk
-- gain atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
......@@ -20,7 +20,7 @@ function cm.initial_effect(c)
e2:SetTarget(cm.atktg)
e2:SetValue(2000)
c:RegisterEffect(e2)
--destroy
-- destroy
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DRAW)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
......
......@@ -6,7 +6,7 @@ function cm.initial_effect(c)
--fusion procedure
aux.AddMaterialCodeList(c,81086007)
c:EnableReviveLimit()
aux.AddFusionProcMix(c,true,true,81086007,cm.matfilter1,cm.matfilter2)
aux.AddFusionProcMix(c,true,true,81086007,cm.matfilter1,cm.matfilter2,nil)
--spsummon condition
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
......
--军势的朝比奈千夜
-- 军势的朝比奈千夜
local s,id,o=GetID()
function s.initial_effect(c)
local e1=Effect.CreateEffect(c)
......
......@@ -25,7 +25,8 @@ function c88178103.initial_effect(c)
e4:SetDescription(aux.Stringid(88178103,0))
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_DESTROYED)
e4:SetCountLimit(1,98178103)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e4:SetCountLimit(1,88178103)
e4:SetCost(c88178103.thcost)
e4:SetCondition(c88178103.retcon)
e4:SetTarget(c88178103.rettg)
......
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