Commit d8ac646d authored by Huangnan's avatar Huangnan

fix

parent 344d4dc4
Pipeline #32795 passed with stages
in 45 minutes and 34 seconds
No preview for this file type
...@@ -48,7 +48,6 @@ function cm.initial_effect(c) ...@@ -48,7 +48,6 @@ function cm.initial_effect(c)
function Card.CheckFusionMaterial(card,Group_fus,Card_g,int_chkf,not_mat) function Card.CheckFusionMaterial(card,Group_fus,Card_g,int_chkf,not_mat)
local exg=Group.CreateGroup() local exg=Group.CreateGroup()
exg=Duel.GetMatchingGroup(cm.filter0,int_chkf,0,LOCATION_MZONE+LOCATION_GRAVE,nil,card) exg=Duel.GetMatchingGroup(cm.filter0,int_chkf,0,LOCATION_MZONE+LOCATION_GRAVE,nil,card)
exg=Group.__bxor(exg,Group_fus):Filter(Card.IsLocation,nil,LOCATION_MZONE+LOCATION_GRAVE)
if exg:GetCount()>0 then if exg:GetCount()>0 then
if Duel.GetFlagEffect(0,m)~=0 and Duel.GetFlagEffect(0,m+50)==0 then if Duel.GetFlagEffect(0,m)~=0 and Duel.GetFlagEffect(0,m+50)==0 then
Duel.RegisterFlagEffect(0,m+50,RESET_CHAIN,0,1) Duel.RegisterFlagEffect(0,m+50,RESET_CHAIN,0,1)
......
...@@ -33,7 +33,7 @@ function s.initial_effect(c) ...@@ -33,7 +33,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone() local e4=e3:Clone()
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_LEAVE_FIELD) e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCondition(s.tkcon) e4:SetCondition(s.tkcon)
c:RegisterEffect(e4) c:RegisterEffect(e4)
...@@ -94,10 +94,10 @@ function s.sprop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -94,10 +94,10 @@ function s.sprop(e,tp,eg,ep,ev,re,r,rp,c)
g:DeleteGroup() g:DeleteGroup()
end end
function s.cfilter(c,tp) function s.cfilter(c,tp)
return not c:GetControler()==tp return c:IsPreviousControler(1-tp)
end end
function s.tkcon(e) function s.tkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,e:GetHandlerPlayer()) return eg:IsExists(s.cfilter,1,nil,tp)
end end
function s.tktg(e,tp,eg,ep,ev,re,r,rp,chk) function s.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local b1=Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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