Commit f8339ef4 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 462c4a37
Pipeline #29868 passed with stages
in 28 minutes and 46 seconds
......@@ -49,8 +49,11 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,66)
end
function s.ccfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsSummonPlayer(tp) and c:IsFaceup()
end
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPublic()
return e:GetHandler():IsPublic() and eg:IsExists(s.ccfilter,1,nil,tp)
end
function s.tdfilter(c,tp,e)
return c:IsSummonPlayer(tp) and c:IsLocation(LOCATION_MZONE)
......
......@@ -73,7 +73,7 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp)
e1:SetLabelObject(c)
e1:SetCondition(s.retcon)
e1:SetOperation(s.retop)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_EVENT)
Duel.RegisterEffect(e1,tp)
end
end
......@@ -98,7 +98,7 @@ function s.retcon(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp then return false end
local fid=e:GetLabel()
local ec=e:GetLabelObject()
if ec:GetFlagEffectLabel(id)~=fid then
if ec:GetFlagEffectLabel(id)~=fid or ec:GetLocation()~=LOCATION_HAND then
e:Reset()
return false
else return true end
......
......@@ -98,7 +98,7 @@ function s.retcon(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp then return false end
local fid=e:GetLabel()
local ec=e:GetLabelObject()
if ec:GetFlagEffectLabel(id)~=fid then
if ec:GetFlagEffectLabel(id)~=fid or ec:GetLocation()~=LOCATION_HAND then
e:Reset()
return false
else return true end
......
......@@ -102,7 +102,7 @@ function s.retcon(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp then return false end
local fid=e:GetLabel()
local ec=e:GetLabelObject()
if ec:GetFlagEffectLabel(id)~=fid then
if ec:GetFlagEffectLabel(id)~=fid or ec:GetLocation()~=LOCATION_HAND then
e:Reset()
return false
else return true end
......
......@@ -95,7 +95,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_REDIRECT)
e1:SetValue(LOCATION_EXTRA)
e1:SetValue(LOCATION_DECK)
c:RegisterEffect(e1,true)
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