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

man!

parent 5ac8e536
......@@ -47,14 +47,14 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
--spsummon
function cm.xyzfilter(c,e)
function cm.xyzfilter(c,e,tp)
return c:IsCanBeXyzMaterial(e:GetHandler()) and (Duel.GetLocationCountFromEx(tp)>0 or Duel.GetLocationCountFromEx(1-tp)>0) and c:GetOverlayCount()>0 and c:IsType(TYPE_XYZ)
end
function cm.con(e,c)
return Duel.IsExistingMatchingCard(cm.xyzfilter,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil,e) and Duel.GetFlagEffect(e:GetHandlerPlayer(),m)==0
return Duel.IsExistingMatchingCard(cm.xyzfilter,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil,e,e:GetHandlerPlayer()) and Duel.GetFlagEffect(e:GetHandlerPlayer(),m)==0
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,0,LOCATION_MZONE,nil,e)
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,0,LOCATION_MZONE,nil,e,e:GetHandlerPlayer())
if #g>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local xg=g:Select(tp,1,1,nil)
......@@ -75,10 +75,10 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp,c,og,min,max)
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
function cm.con2(e,c)
return Duel.IsExistingMatchingCard(cm.xyzfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,e) and Duel.GetFlagEffect(e:GetHandlerPlayer(),m)==0
return Duel.IsExistingMatchingCard(cm.xyzfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,e,e:GetHandlerPlayer()) and Duel.GetFlagEffect(e:GetHandlerPlayer(),m)==0
end
function cm.tg2(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,LOCATION_MZONE,0,nil,e)
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,LOCATION_MZONE,0,nil,e,e:GetHandlerPlayer())
if #g>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local xg=g:Select(tp,1,1,nil)
......
......@@ -47,14 +47,14 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
--spsummon
function cm.xyzfilter(c,e)
function cm.xyzfilter(c,e,tp)
return c:IsCanBeXyzMaterial(e:GetHandler()) and (Duel.GetLocationCountFromEx(tp)>0 or Duel.GetLocationCountFromEx(1-tp)>0) and c:GetOverlayCount()>0 and c:IsType(TYPE_XYZ)
end
function cm.con(e,c)
return Duel.IsExistingMatchingCard(cm.xyzfilter,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil,e) and Duel.GetFlagEffect(e:GetHandlerPlayer(),m)==0
return Duel.IsExistingMatchingCard(cm.xyzfilter,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil,e,e:GetHandlerPlayer()) and Duel.GetFlagEffect(e:GetHandlerPlayer(),m)==0
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,0,LOCATION_MZONE,nil,e)
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,0,LOCATION_MZONE,nil,e,e:GetHandlerPlayer())
if #g>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local xg=g:Select(tp,1,1,nil)
......@@ -86,10 +86,10 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
function cm.con2(e,c)
return Duel.IsExistingMatchingCard(cm.xyzfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,e) and Duel.GetFlagEffect(e:GetHandlerPlayer(),m)==0
return Duel.IsExistingMatchingCard(cm.xyzfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,e,e:GetHandlerPlayer()) and Duel.GetFlagEffect(e:GetHandlerPlayer(),m)==0
end
function cm.tg2(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,LOCATION_MZONE,0,nil,e)
local g=Duel.GetMatchingGroup(cm.xyzfilter,tp,LOCATION_MZONE,0,nil,e,e:GetHandlerPlayer())
if #g>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local xg=g:Select(tp,1,1,nil)
......
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