Commit ace7655e authored by REIKAI's avatar REIKAI 💬

update 11.20

parent c0e9a94f
Pipeline #18024 failed with stages
in 9 seconds
No preview for this file type
......@@ -22,10 +22,13 @@ end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if re:IsHasType(EFFECT_TYPE_ACTIVATE) then
local code=re:GetHandler():GetOriginalCode()
local g=Duel.GetMatchingGroup(Card.IsOriginalCodeRule,tp,LOCATION_DECK,0,nil,code)
local g=Duel.GetMatchingGroup(Card.IsOriginalCodeRule,tp,0xff,0,nil,code)
Debug.Message(tc:GetSequence())
local op=re:GetOperation()
for tc in aux.Next(g) do
local pro1,pro2=re:GetProperty()
local e1=re:Clone()
e1:SetProperty(pro1|EFFECT_FLAG_SET_AVAILABLE,pro2)
e1:SetCountLimit(1,code+321+EFFECT_COUNT_CODE_OATH)
e1:SetOperation(function(ce,ctp,ceg,cep,cev,cre,cr,crp)
op(ce,ctp,ceg,cep,cev,cre,cr,crp)
......@@ -33,5 +36,6 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end)
tc:RegisterEffect(e1)
end
Duel.AdjustAll()
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