Commit e0294377 authored by Tachibana's avatar Tachibana

ybb

parent 3fa8f360
...@@ -36,29 +36,12 @@ function cm.initial_effect(c) ...@@ -36,29 +36,12 @@ function cm.initial_effect(c)
end end
end end
end end
local sg=Group.Clone(Group_fus)
if exg:GetCount()>0 then if exg:GetCount()>0 then
sg:Merge(exg) Group_fus:Merge(exg)
end end
return _hack_fusion_check(card,sg,Card_g,int_chkf,not_mat) return _hack_fusion_check(card,Group_fus,Card_g,int_chkf,not_mat)
end
function Duel.SelectFusionMaterial(player,card,Group_fus,int_chkf,not_mat)
local exc=Duel.GetMatchingGroup(cm.getexc,int_chkf,LOCATION_MZONE,0,nil)
local exg=Group.CreateGroup()
if exc:GetCount()>0 then
for tc in aux.Next(exc) do
local exg_temp=tc:GetOverlayGroup()
if exg_temp:GetCount()>0 then
exg:Merge(exg_temp)
end
end
end
local sg=Group.Clone(Group_fus)
if exg:GetCount()>0 then
sg:Merge(exg)
end
return _hack_fusion_select(player,card,sg,int_chkf,not_mat)
end end
end end
end end
function cm.advtg(e,c) function cm.advtg(e,c)
......
...@@ -92,7 +92,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,7 +92,7 @@ function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
end end
-------- --------
function cm.cfilter2(c,tp) function cm.cfilter2(c,tp)
return c:IsReleasable() and Duel.GetMZoneCount(tp,c)>0 and c:IsType(TYPE_SYNCHRO) return c:IsReleasable() and Duel.GetMZoneCount(tp,c)>0 and c:IsType(TYPE_SYNCHRO) and c:IsType(TYPE_TUNER)
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_ONFIELD,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_ONFIELD,0,1,nil,tp) end
......
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