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

Replace c12866815.lua

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