Commit f6b278e1 authored by Grajade's avatar Grajade

Update c86379106.lua

parent a79dbd97
Pipeline #8766 passed with stage
in 38 seconds
......@@ -38,15 +38,17 @@ function c86379106.op(e,tp,eg,ep,ev,re,r,rp)
if g4:GetCount()>1 then
Duel.ShuffleSetCard(g4)
end
local fid=c:GetFieldID()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(86379106,0))
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetLabel(fid)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetOperation(c86379106.setop)
Duel.RegisterEffect(e1,tp)
e:GetHandler():RegisterFlagEffect(86379106,RESET_EVENT+RESETS_STANDARD-RESET_LEAVE+RESET_OVERLAY-RESET_TOGRAVE+RESET_PHASE+PHASE_END,0,1)
e:GetHandler():RegisterFlagEffect(86379106,RESET_EVENT+RESETS_STANDARD-RESET_TOGRAVE+RESET_PHASE+PHASE_END,0,1,fid)
end
--
function c86379106.setfilter(c)
......@@ -63,7 +65,7 @@ function c86379106.setop(e,tp,eg,ep,ev,re,r,rp)
local sc=g:GetFirst():GetCode()
Duel.ConfirmCards(1-tp,g)
if ac~=sc then
if e:GetHandler():GetFlagEffect(86379106)>0 and e:GetHandler():IsLocation(LOCATION_GRAVE) then
if e:GetHandler():GetFlagEffect(86379106)>0 and c:GetFlagEffectLabel(86379106)==e:GetLabel() then
Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,e:GetHandler())
end
......
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