Commit 129d5b52 authored by wyykak's avatar wyykak

fix 86379041

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent c059d38a
Pipeline #39583 passed with stage
in 6 seconds
...@@ -18,7 +18,7 @@ function c86379041.initial_effect(c) ...@@ -18,7 +18,7 @@ function c86379041.initial_effect(c)
end end
-- --
function c86379041.filter0(c,e) function c86379041.filter0(c,e)
return c:IsCanBeFusionMaterial() and c:IsSetCard(0x279) and (c:IsFaceup() or Duel.IsPlayerAffectedByEffect(c:GetControler(),31027)) return c:IsCanBeFusionMaterial() and c:IsSetCard(0x279) and ((c:IsLocation(LOCATION_DECK) and (c:IsFaceup() or Duel.IsPlayerAffectedByEffect(c:GetControler(),31027))) or c:IsLocation(LOCATION_HAND+LOCATION_ONFIELD))
end end
function c86379041.filter1(c,e) function c86379041.filter1(c,e)
return c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e) return c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e)
...@@ -31,7 +31,7 @@ function c86379041.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,7 +31,7 @@ function c86379041.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp) local mg1=Duel.GetFusionMaterial(tp)
mg1:Merge(Duel.GetMatchingGroup(c86379041.filter0,tp,LOCATION_DECK,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(c86379041.filter0,tp,LOCATION_DECK+LOCATION_ONFIELD+LOCATION_HAND,LOCATION_DECK,nil,e))
local res=Duel.IsExistingMatchingCard(c86379041.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c86379041.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -49,7 +49,7 @@ end ...@@ -49,7 +49,7 @@ end
function c86379041.activate(e,tp,eg,ep,ev,re,r,rp) function c86379041.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c86379041.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c86379041.filter1,nil,e)
mg1:Merge(Duel.GetMatchingGroup(c86379041.filter0,tp,LOCATION_DECK,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(c86379041.filter0,tp,LOCATION_DECK+LOCATION_ONFIELD+LOCATION_HAND,LOCATION_DECK,nil,e))
local sg1=Duel.GetMatchingGroup(c86379041.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c86379041.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg2=nil local mg2=nil
local sg2=nil local sg2=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