Commit cae16d3e authored by Nemo Ma's avatar Nemo Ma

fix

parent 3b2c6f78
No preview for this file type
--幻旅传说·空境
--traveler saga kyoukaisen
--21.04.10
local m=11451408
local cm=_G["c"..m]
......@@ -42,6 +42,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.MoveSequence(mg:GetFirst(),0)
end
Duel.ConfirmDecktop(tp,seq+1)
if tc:IsType(TYPE_RITUAL) and (tc.mat_filter or tc.mat_group_check) then
Duel.ShuffleDeck(tp)
return
end
local mg=Duel.GetDecktopGroup(tp,seq):Filter(cm.mfilter,nil)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and tc:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) and #mg>=tc:GetLevel() then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
......
......@@ -3,6 +3,7 @@
local m=11451578
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,11451581)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),1,2)
c:EnableReviveLimit()
......
......@@ -3,6 +3,7 @@
local m=11451579
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,11451582)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),4,2)
c:EnableReviveLimit()
......
......@@ -3,6 +3,7 @@
local m=11451580
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,11451583)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),7,2)
c:EnableReviveLimit()
......
......@@ -81,7 +81,7 @@ end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local lc=Duel.GetLocationCount(tp,LOCATION_MZONE)
if not (lc>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)) then return end
local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_GRAVE,0,nil)
local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_GRAVE,0,nil,e,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if lc>2 then lc=2 end
local g1=g:SelectSubGroup(tp,cm.check,false,1,lc)
......
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