Commit 9761dbce authored by mercury233's avatar mercury233

fix

parent 2ec37a14
......@@ -17,27 +17,34 @@ end
function c100414012.costfilter(c,tp)
return c:IsSetCard(0x23f) and (c:IsControler(tp) or c:IsFaceup())
end
function c100414012.fselect(g,tp,ec)
function c100414012.fselect(g,tp,exc)
local dg=g:Clone()
dg:AddCard(ec)
if exc then dg:AddCard(exc) end
if Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,g:GetCount()+1,dg) then
Duel.SetSelectedCard(g)
return Duel.CheckReleaseGroup(tp,nil,0,nil)
else return false end
end
function c100414012.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100,0)
local exc=nil
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then exc=e:GetHandler() end
local g=Duel.GetReleaseGroup(tp):Filter(c100414012.costfilter,nil,tp)
if chk==0 then return g:CheckSubGroup(c100414012.fselect,1,g:GetCount(),tp,e:GetHandler()) end
if chk==0 then return g:CheckSubGroup(c100414012.fselect,1,g:GetCount(),tp,exc) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=g:SelectSubGroup(tp,c100414012.fselect,false,1,g:GetCount(),tp,e:GetHandler())
e:SetLabel(Duel.Release(rg,REASON_COST))
local rg=g:SelectSubGroup(tp,c100414012.fselect,false,1,g:GetCount(),tp,exc)
e:SetLabel(100,Duel.Release(rg,REASON_COST))
end
function c100414012.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local exc=nil
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then exc=e:GetHandler() end
local check,ct=e:GetLabel()
if chkc then return chkc:IsOnField() end
if chk==0 then return true end
local ct=e:GetLabel()
if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,exc) end
if check~=100 then ct=0 end
e:SetLabel(0,0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,ct+1,ct+1,e:GetHandler())
local g=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,ct+1,ct+1,exc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c100414012.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -31,7 +31,7 @@ function c100414021.initial_effect(c)
c:RegisterEffect(e2)
end
function c100414021.cfilter(c)
return c:IsType(TYPE_MONSTER) or c:IsPreviousLocation(LOCATION_MZONE)
return (c:IsType(TYPE_MONSTER) and not c:IsPreviousLocation(LOCATION_SZONE)) or c:IsPreviousLocation(LOCATION_MZONE)
end
function c100414021.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c100414021.cfilter,1,nil) and not eg:IsContains(e:GetHandler())
......
......@@ -60,7 +60,7 @@ function c100414022.rlop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c100414022.atkfilter(c)
return c:IsType(TYPE_MONSTER) or c:IsPreviousLocation(LOCATION_MZONE)
return (c:IsType(TYPE_MONSTER) and not c:IsPreviousLocation(LOCATION_SZONE)) or c:IsPreviousLocation(LOCATION_MZONE)
end
function c100414022.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c100414022.atkfilter,1,nil) and not eg:IsContains(e:GetHandler())
......
......@@ -11,6 +11,7 @@ function c100414028.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c100414028.tglimit)
......
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