Commit 965e7f88 authored by VanillaSalt's avatar VanillaSalt

update

parent 61570545
......@@ -45,14 +45,12 @@ function c41999284.atkop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1)
end
end
function c41999284.cfilter(c,ft,tp)
return c:GetLevel()==1 and c:IsControler(tp)
and (ft>0 or c:GetSequence()<5)
function c41999284.cfilter(c,tp)
return c:GetLevel()==1 and Duel.GetMZoneCount(tp,c)>0
end
function c41999284.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.CheckReleaseGroup(tp,c41999284.cfilter,1,nil,ft,tp) end
local g=Duel.SelectReleaseGroup(tp,c41999284.cfilter,1,1,nil,ft,tp)
if chk==0 then return Duel.CheckReleaseGroup(tp,c41999284.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c41999284.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST)
end
function c41999284.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -26,8 +26,9 @@ function c50696588.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_MUST_USE_MZONE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_NO_TURN_RESET)
e1:SetTargetRange(0,1)
e1:SetValue(flag)
e1:SetCountLimit(1)
Duel.RegisterEffect(e1,tp)
end
......@@ -5,7 +5,14 @@ function c61888819.initial_effect(c)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0xa),2,2)
c:EnableReviveLimit()
--force mzone
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_MUST_USE_MZONE)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_EXTRA,LOCATION_EXTRA)
e1:SetCondition(c54813225.frccon)
e1:SetValue(c54813225.frcval)
c:RegisterEffect(e1)
--cannot be target/indestructable
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
......@@ -35,6 +42,12 @@ function c61888819.initial_effect(c)
e6:SetOperation(c61888819.spop)
c:RegisterEffect(e6)
end
function c61888819.frccon(e)
return e:GetHandler():GetSequence()>4
end
function c61888819.frcval(e,c,fp,rp,r)
return e:GetHandler():GetLinkedZone()
end
function c61888819.indcon(e)
return e:GetHandler():GetLinkedGroupCount()>0
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