Commit 2995113d authored by Nemo Ma's avatar Nemo Ma

list

parent 1dcf8823
......@@ -1046,13 +1046,39 @@
30015045 0
30015080 0
30015100 0
#Tears are now in Japari Park!
572850 1
4928565 0
28226490 0
37961969 1
73956664 0
74078255 1
84330567 0
92731385 0
1329620 0
6767771 0
33878367 0
34225426 0
60362066 0
74920585 0
77103950 1
#230108
53796027 0
60000101 0
60000103 0
60000104 0
65000000 0
65020212 0
99922020 0
22022580 1
22022590 1
30005501 1
30005502 2
#221218
10173059 0
14010048 0
35399007 0
40010639 0
53716001 0
53716004 0
60060026 0
65010026 0
#221211
......@@ -1099,8 +1125,6 @@
25000022 0
25809997 0
25809999 0
30005501 0
30005502 0
31400008 0
31400068 0
31409108 0
......@@ -1110,7 +1134,7 @@
67200289 0
75124689 0
82577947 0
189112 1
189112 0
33200952 1
53729018 1
67200265 1
......@@ -1573,7 +1597,6 @@
82224073 0
20000454 1
40008670 1
65020212 1
#220904
20220723 0
40009481 0
......@@ -2566,7 +2589,7 @@
33403512 0
33403502 1
33403509 1
48130397 1 --Special
48130397 2 --Special
#210711
10700085 0
14000216 0
......@@ -2839,7 +2862,7 @@
#65010583 1
79029360 1
90700039 0
22020440 2
22020440 0
#210228
30000080 0
30001002 0
......@@ -3946,7 +3969,6 @@
#limit
22050180 1
33403513 1
65000000 1
82204250 1
79029038 1
79029050 1
......@@ -4677,7 +4699,6 @@
121082832 0
121082833 0
121593977 0
82221014 2
14010223 0
14010224 0
14010225 0
......@@ -5020,6 +5041,13 @@
90700020 0
14000703 0
14000704 0
#230108
40009398 0
60000009 0
60000010 0
60002085 0
82221014 0
90351999 0
#WILDEST
90700071 0
90700072 0
......
No preview for this file type
--last upd 2022-9-1
--if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
Seine_space_ghoti={}
local sf=_G["Seine_space_ghoti"]
sf.sfcode=31423001
function sf.to_deck_cost(towhere)
local seq
if not towhere then seq=SEQ_DECKSHUFFLE end
if towhere==1 then seq=SEQ_DECKTOP end
if towhere==2 then seq=SEQ_DECKBOTTOM end
return function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeckAsCost() end
Duel.SendtoDeck(e:GetHandler(),tp,seq,REASON_COST)
end
end
function sf.sp_proc_con(e,c)
if c==nil then return true end
return Duel.GetMatchingGroupCount(aux.TRUE,c:GetControler(),e:GetLabel(),0,c)==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function sf.add_sp_proc(c,from,nocard)
if c:GetCode()~=sf.sfcode then
aux.AddCodeList(c,sf.sfcode)
aux.EnableChangeCode(c,sf.sfcode,0x1ff)
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(from)
if not from then e1:SetRange(LOCATION_HAND+LOCATION_DECK) end
e1:SetCondition(sf.sp_proc_con)
e1:SetLabel(nocard)
if not nocard then e1:SetLabel(LOCATION_HAND+LOCATION_ONFIELD) end
c:RegisterEffect(e1)
end
function sf.climax_atk_con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():GetControler()~=tp
end
function sf.climax_tg(e,tp,eg,ep,ev,re,r,rp,chk)
local num=e:GetLabel()
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,num) end
end
function sf.climax_filter(c)
return c:IsCode(sf.sfcode) or aux.IsCodeListed(c,sf.sfcode)
end
function sf.climax_op(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanDiscardDeck(tp,1) then return end
local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
if ct==0 then return end
if ct>e:GetLabel() then ct=e:GetLabel() end
Duel.ConfirmDecktop(tp,ct)
local g=Duel.GetDecktopGroup(tp,ct)
local sg=g:Filter(sf.climax_filter,nil)
if sg:GetCount()>0 then
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL)
if Duel.GetAttacker() then Duel.NegateAttack() end
end
Duel.ShuffleDeck(tp)
end
function sf.add_climax_e(c,num)
local code=c:GetCode()
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(sf.sfcode-1,0))
e1:SetCategory(CATEGORY_DECKDES)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetCost(aux.bfgcost)
e1:SetTarget(sf.climax_tg)
e1:SetOperation(sf.climax_op)
e1:SetLabel(num)
e1:SetCountLimit(1,code)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetCondition(sf.climax_atk_con)
c:RegisterEffect(e2)
end
function sf.copy_reveal_con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_REVEAL)
end
function sf.copy_cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1)
if chk==0 then return true end
end
function sf.copy_tg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then
if e:GetLabel()==0 then return false end
e:SetLabel(0)
return Duel.IsExistingMatchingCard(Card.IsAbleToDeckAsCost,tp,LOCATION_HAND,0,1,nil) and c:CheckActivateEffect(true,true,false)~=nil
end
e:SetLabel(0)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckAsCost,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST)
local te,ceg,cep,cev,cre,cr,crp=c:CheckActivateEffect(true,true,true)
e:SetProperty(te:GetProperty())
local tg=te:GetTarget()
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.ClearOperationInfo(0)
end
function sf.copy_op(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
if te then
e:SetLabelObject(te:GetLabelObject())
local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end
end
e:SetProperty(EFFECT_FLAG_DELAY)
end
function sf.add_copy_e(c)
local code=c:GetCode()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_REMOVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCost(sf.copy_cost)
e1:SetTarget(sf.copy_tg)
e1:SetOperation(sf.copy_op)
e1:SetCountLimit(1,code+100000000)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_TO_GRAVE)
e2:SetCondition(sf.copy_reveal_con)
c:RegisterEffect(e2)
end
function sf.spell_ini(c,climax_num)
sf.add_copy_e(c)
sf.add_climax_e(c,climax_num)
aux.AddCodeList(c,sf.sfcode)
end
\ No newline at end of file
local m=31423002
local cm=_G["c"..m]
cm.name="弥散之星鱼-原星鱼"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.add_sp_proc(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCost(Seine_space_ghoti.to_deck_cost())
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and c:IsAbleToHand() and not c:IsOriginalCodeRule(m)
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
local m=31423003
local cm=_G["c"..m]
cm.name="虹鳞之星鱼-彗星鱼"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.add_sp_proc(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCost(Seine_space_ghoti.to_deck_cost())
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
function cm.filter(e,c)
return c:IsCode(Seine_space_ghoti.sfcode) or aux.IsCodeListed(c,Seine_space_ghoti.sfcode) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetTargetRange(LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,0)
e1:SetTarget(cm.filter)
e1:SetValue(cm.efilter)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function cm.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end
\ No newline at end of file
local m=31423004
local cm=_G["c"..m]
cm.name="月辉之星鱼-行星鱼"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.add_sp_proc(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_GRAVE+LOCATION_REMOVED)
e1:SetCondition(cm.con)
e1:SetCost(Seine_space_ghoti.to_deck_cost())
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_ONFIELD+LOCATION_HAND,0,e:GetHandler())==0
end
function cm.filter(c)
return aux.IsCodeListed(c,Seine_space_ghoti.sfcode) and c:IsFaceup()
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_REMOVED,0,1,nil) end
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_REMOVED,0,1,1,nil):GetFirst()
if c then
Duel.HintSelection(Group.FromCards(c))
_G["c"..c:GetOriginalCodeRule()].activate(e,tp,eg,ep,ev,re,r,rp)
end
end
\ No newline at end of file
local m=31423005
local cm=_G["c"..m]
cm.name="远星之星鱼-恒星鱼"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.add_sp_proc(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_GRAVE+LOCATION_REMOVED)
e1:SetCondition(cm.con)
e1:SetCost(Seine_space_ghoti.to_deck_cost())
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_ONFIELD+LOCATION_HAND,0,e:GetHandler())==0
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local num=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
local count=1
if num>=20 then count=count+1 end
if num>=40 then count=count+1 end
if num>=80 then count=count+1 end
local dam=num*count*10
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local num=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
local count=1
if num>=20 then count=count+1 end
if num>=40 then count=count+1 end
if num>=80 then count=count+1 end
local dam=num*count*10
Duel.Damage(p,dam,REASON_EFFECT)
end
\ No newline at end of file
local m=31423006
local cm=_G["c"..m]
cm.name="世界之星鱼-新星鱼"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.add_sp_proc(c,LOCATION_HAND+LOCATION_REMOVED)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE+LOCATION_REMOVED)
e1:SetCondition(cm.con)
e1:SetCost(Seine_space_ghoti.to_deck_cost())
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_ONFIELD+LOCATION_HAND,0,e:GetHandler())==0
end
function cm.filter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and not c:IsOriginalCodeRule(m)
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil):GetFirst()
if c then
Duel.HintSelection(Group.FromCards(c))
_G["c"..c:GetOriginalCodeRule()].op(e,tp,eg,ep,ev,re,r,rp)
end
end
\ No newline at end of file
local m=31423007
local cm=_G["c"..m]
cm.name="摇荡之星鱼-波星鱼"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.add_sp_proc(c,LOCATION_HAND+LOCATION_REMOVED)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE+LOCATION_REMOVED)
e1:SetCondition(cm.con)
e1:SetCost(Seine_space_ghoti.to_deck_cost())
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_ONFIELD+LOCATION_HAND,0,e:GetHandler())==0
end
function cm.filter(c)
return c:IsAbleToDeck() and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,1-tp,LOCATION_ONFIELD)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,0,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
end
\ No newline at end of file
local m=31423008
local cm=_G["c"..m]
cm.name="越光之星鱼-微星鱼"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.add_sp_proc(c,LOCATION_HAND+LOCATION_GRAVE)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE+LOCATION_GRAVE)
e1:SetCondition(cm.con)
e1:SetCost(Seine_space_ghoti.to_deck_cost(2))
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_ONFIELD+LOCATION_HAND,0,e:GetHandler())==0
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
\ No newline at end of file
local m=31423009
local cm=_G["c"..m]
cm.name="未来之星鱼-暗星鱼"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.add_sp_proc(c,LOCATION_HAND+LOCATION_GRAVE)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetRange(LOCATION_MZONE+LOCATION_GRAVE)
e1:SetCondition(cm.con)
e1:SetCost(Seine_space_ghoti.to_deck_cost(2))
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
c:RegisterEffect(e1)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and Duel.IsChainNegatable(ev) and Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_ONFIELD+LOCATION_HAND,0,e:GetHandler())==0
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
end
\ No newline at end of file
local m=31423100
local cm=_G["c"..m]
cm.name="星鱼诞生"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,5)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(cm.con)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.confilter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and c:IsPosition(POS_FACEUP_DEFENSE)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter,tp,0,LOCATION_DECK,1,nil)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then
local h1=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
if c:IsLocation(LOCATION_HAND) then h1:RemoveCard(c) end
local con1=(Duel.IsPlayerCanDraw(tp,#h1) and h1:FilterCount(Card.IsAbleToDeck,nil)==#h1)
local h2=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
local con2=(Duel.IsPlayerCanDraw(1-tp) and h2:FilterCount(Card.IsAbleToDeck,nil)==#h2)
return (#h1+#h2>0) and (con1 or #h1==0) and (con2 or #h2==0)
end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,0,PLAYER_ALL,1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,1)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local h1=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
local h2=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
local num1=Duel.SendtoDeck(h1,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.ShuffleDeck(tp)
local num2=Duel.SendtoDeck(h2,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.ShuffleDeck(1-tp)
Duel.BreakEffect()
Duel.Draw(tp,num1,REASON_EFFECT)
Duel.Draw(1-tp,num2,REASON_EFFECT)
end
\ No newline at end of file
local m=31423102
local cm=_G["c"..m]
cm.name="星鱼狂潮『原星潮』"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and c:IsDiscardable()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,cm.filter,1,1,REASON_COST+REASON_DISCARD)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(2)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
if p==2 and d==0 then
p=tp
d=2
end
Duel.Draw(p,d,REASON_EFFECT)
end
\ No newline at end of file
local m=31423103
local cm=_G["c"..m]
cm.name="星鱼狂潮『彗星潮』"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.filter(c,e,tp)
return c:IsCode(Seine_space_ghoti.sfcode) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end
if Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_HAND,0,e:GetHandler())==0 then
return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp)
else
return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil,e,tp)
end
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g
if Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0 then
g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
else
g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
end
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
local m=31423104
local cm=_G["c"..m]
cm.name="星鱼狂潮『行星潮』"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_TOGRAVE+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and (c:IsAbleToHand() or c:IsAbleToGrave() or c:IsAbleToRemove())
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()<=0 then return end
local tc=g:GetFirst()
local options={}
if tc:IsAbleToHand() then table.insert(options,1190) end
if tc:IsAbleToGrave() then table.insert(options,1191) end
if tc:IsAbleToRemove() then table.insert(options,1192) end
local op=options[Duel.SelectOption(tp,table.unpack(options))+1]
if op==1190 then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
end
if op==1191 then
Duel.SendtoGrave(tc,REASON_EFFECT)
end
if op==1192 then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
end
\ No newline at end of file
local m=31423105
local cm=_G["c"..m]
cm.name="星鱼狂潮『恒星潮』"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.tgfilter(c)
return aux.IsCodeListed(c,Seine_space_ghoti.sfcode) and c:IsAbleToGrave()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_REVEAL+REASON_EFFECT)
end
end
\ No newline at end of file
local m=31423106
local cm=_G["c"..m]
cm.name="星鱼狂潮『新星潮』"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.filter(c,e,tp)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and aux.IsCodeListed(c,Seine_space_ghoti.sfcode) and c:IsAbleToHand() and not c:IsCode(m)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE+LOCATION_REMOVED)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.filter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
local m=31423107
local cm=_G["c"..m]
cm.name="星鱼狂潮『波星潮』"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(cm.cost)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and c:IsDiscardable()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,cm.filter,1,1,REASON_COST+REASON_DISCARD)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local lp=Duel.GetLP(tp)
lp=lp*2
if lp<8000 then lp=8000 end
Duel.SetLP(tp,lp)
end
\ No newline at end of file
local m=31423108
local cm=_G["c"..m]
cm.name="星鱼狂潮『微星潮』"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and c:IsDiscardable()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,cm.filter,1,1,REASON_COST+REASON_DISCARD)
end
function cm.tdfilter(c)
return (c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) or (c:IsFaceup() and c:IsType(TYPE_PENDULUM))) and c:IsAbleToDeck()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.tdfilter,tp,0,LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA,nil)
if chk==0 then return #g>0 end
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.tdfilter,tp,0,LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA,nil)
if aux.NecroValleyNegateCheck(g) then return end
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
\ No newline at end of file
local m=31423109
local cm=_G["c"..m]
cm.name="星鱼狂潮『暗星潮』"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(Seine_space_ghoti.sfcode-1,1))
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and c:IsDiscardable()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,cm.filter,1,1,REASON_COST+REASON_DISCARD)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if chk==0 then return #g>0 and Duel.IsPlayerCanDraw(1-tp) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,g:GetCount())
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,LOCATION_ONFIELD)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,nil)
if g:GetCount()>0 and Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_RULE)>0 then
local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK)
if ct>0 then
Duel.ShuffleDeck(1-tp)
Duel.BreakEffect()
Duel.Draw(1-tp,ct,REASON_EFFECT)
end
end
end
\ No newline at end of file
local m=31423202
local cm=_G["c"..m]
cm.name="星鱼溯洄"
if not pcall(function() require("expansions/script/c31423000") end) then require("expansions/script/c31423000") end
function cm.initial_effect(c)
Seine_space_ghoti.spell_ini(c,3)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetHintTiming(TIMING_END_PHASE,TIMING_END_PHASE)
c:RegisterEffect(e1)
end
function cm.filter(c)
return Seine_space_ghoti.climax_filter(c) and c:IsAbleToDeck()
end
function cm.td_filter(c)
return c:IsCode(Seine_space_ghoti.sfcode) and c:IsLocation(LOCATION_DECK)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_GRAVE+LOCATION_REMOVED,0)~=0 end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,0,PLAYER_ALL,1)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local grg=Duel.GetFieldGroup(tp,LOCATION_GRAVE+LOCATION_REMOVED,0)
if #grg==0 then return end
Duel.ConfirmCards(1-tp,grg)
g=grg:Filter(cm.filter,nil)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.BreakEffect()
--local num=g:FilterCount(cm.td_filter,nil)
local num=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK)
for i=1,num do
local tk=Duel.CreateToken(1-tp,Seine_space_ghoti.sfcode)
Duel.SendtoDeck(tk,1-tp,SEQ_DECKBOTTOM,REASON_EFFECT)
tk:ReverseInDeck()
end
end
\ No newline at end of file
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