Commit 04bbec97 authored by wind2009's avatar wind2009

Fix

parent ffcd908f
Pipeline #40112 passed with stages
in 3 minutes and 5 seconds
...@@ -21,7 +21,7 @@ function s.initial_effect(c) ...@@ -21,7 +21,7 @@ function s.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EFFECT_DESTROY_REPLACE) e2:SetCode(EFFECT_DESTROY_REPLACE)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_MZONE+LOCATION_GRAVE)
e2:SetCountLimit(1,id+o) e2:SetCountLimit(1,id+o)
e2:SetTarget(s.reptg) e2:SetTarget(s.reptg)
e2:SetValue(s.repval) e2:SetValue(s.repval)
......
...@@ -53,10 +53,8 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,10 +53,8 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.effectfilter(e,ct) function s.effectfilter(e,ct)
local p=e:GetHandler():GetControler() local p=e:GetHandler():GetControler()
local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER) local te,tp,loc=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER,CHAININFO_TRIGGERING_LOCATION)
local tc=te:GetHandler() local tc=te:GetHandler()
return p==tp and not tc:IsCode(id) and (tc:IsOriginalSetCard(0x66) and tc:IsType(TYPE_SYNCHRO) return p==tp and not tc:IsCode(id) and loc==LOCATION_MZONE and te:IsActiveType(TYPE_MONSTER)
or aux.IsCodeListed(tc,60800381)) and (tc:IsOriginalSetCard(0x66) and tc:IsType(TYPE_SYNCHRO) or aux.IsCodeListed(tc,60800381))
and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_MZONE
and te:IsActiveType(TYPE_MONSTER)
end end
\ No newline at end of file
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