Commit 62d6b1cd authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c12866815.lua

parent acecb19e
......@@ -31,39 +31,29 @@ function s.initial_effect(c)
e1:SetOperation(s.chainop)
Duel.RegisterEffect(e1,0)
s.globle_check=true
AKM_hack_fusion_check=Card.CheckFusionMaterial
function Card.CheckFusionMaterial(card,Group_fus,Card_g,int_chkf,not_mat)
AKM_hack_fusion_mat_get=Duel.GetFusionMaterial
function Duel.GetFusionMaterial(player)
local ori_group=AKM_hack_fusion_mat_get(player)
local exg=Group.CreateGroup()
exg=Duel.GetMatchingGroup(s.filter0,int_chkf,0,LOCATION_MZONE,nil)
exg=Group.__bxor(exg,Group_fus):Filter(s.filter0,nil,e)
if exg:GetCount()>0 then
if Duel.GetFlagEffect(0,id+1)~=0 and Duel.GetFlagEffect(0,id+2)==0 then
Duel.RegisterFlagEffect(0,id+2,RESET_EVENT+RESET_CHAIN,0,1)
local e1=Effect.CreateEffect(card)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_CHAIN_SOLVED)
e1:SetOperation(s.resetop)
e1:SetReset(RESET_EVENT+RESET_CHAIN)
Duel.RegisterEffect(e1,0)
local e2=e1:Clone()
e2:SetCode(EVENT_CHAIN_NEGATED)
Duel.RegisterEffect(e2,0)
end
local hg=Group.__add(exg,Group_fus)
return AKM_hack_fusion_check(card,hg,Card_g,int_chkf,not_mat)
end
return AKM_hack_fusion_check(card,Group_fus,Card_g,int_chkf,not_mat)
end
AKM_hack_fusion_select=Duel.SelectFusionMaterial
function Duel.SelectFusionMaterial(tp,card,mg,gc_nil,chkf)
if Duel.GetFlagEffect(0,id+1)~=0 and Duel.GetFlagEffect(0,id+2)~=0 then
exg=Duel.GetMatchingGroup(s.filter0,int_chkf,0,LOCATION_MZONE,nil)
if exg:GetCount()>0 then
mg:Merge(exg)
exg=Duel.GetMatchingGroup(s.filter0,player,0,LOCATION_MZONE,nil)
exg=Group.__bxor(exg,ori_group):Filter(s.filter0,nil,e)
if exg:GetCount()>0 then
if Duel.GetFlagEffect(0,id+1)~=0 and Duel.GetFlagEffect(0,id+2)==0 then
Duel.RegisterFlagEffect(0,id+2,RESET_EVENT+RESET_CHAIN,0,1)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_CHAIN_SOLVED)
e1:SetOperation(s.resetop)
e1:SetReset(RESET_EVENT+RESET_CHAIN)
Duel.RegisterEffect(e1,0)
local e2=e1:Clone()
e2:SetCode(EVENT_CHAIN_NEGATED)
Duel.RegisterEffect(e2,0)
end
local hg=Group.__add(exg,ori_group)
return hg
end
Duel.ResetFlagEffect(0,id+2)
return AKM_hack_fusion_select(tp,card,mg,gc_nil,chkf)
return ori_group
end
end
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