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)
function Card.CheckFusionMaterial(card,Group_fus,Card_g,int_chkf,not_mat)
local exg=Group.CreateGroup()
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 Duel.GetFlagEffect(0,m)~=0 and Duel.GetFlagEffect(0,m+50)==0 then
Duel.RegisterFlagEffect(0,m+50,RESET_CHAIN,0,1)
......
......@@ -33,7 +33,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetCondition(s.tkcon)
c:RegisterEffect(e4)
......@@ -94,10 +94,10 @@ function s.sprop(e,tp,eg,ep,ev,re,r,rp,c)
g:DeleteGroup()
end
function s.cfilter(c,tp)
return not c:GetControler()==tp
return c:IsPreviousControler(1-tp)
end
function s.tkcon(e)
return eg:IsExists(s.cfilter,1,nil,e:GetHandlerPlayer())
function s.tkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp)
end
function s.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
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