Commit 4fc6ff58 authored by GuGu's avatar GuGu

Update c31504.lua

parent 33799129
Pipeline #33477 passed with stage
in 8 seconds
......@@ -8,7 +8,7 @@ function c31504.initial_effect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetDescription(aux.Stringid(31504,1))
e0:SetCode(EFFECT_SPSUMMON_PROC)
e0:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetRange(LOCATION_EXTRA)
e0:SetCondition(c31504.lkcon)
e0:SetTarget(c31504.lktg)
......@@ -37,17 +37,11 @@ function c31504.lkcon(e,c,og)
return Duel.IsExistingMatchingCard(c31504.mdfilter,tp,LOCATION_MZONE,0,1,nil,tp,c)
end
function c31504.lktg(e,tp,eg,ep,ev,re,r,rp,chk,c,og)
local sg=nil
if og then
local mg=og:Filter(c31504.mdfilter,nil,tp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
sg=mg:SelectSubGroup(tp,aux.TRUE,true,1,1,tp,c)
else
local mg=Duel.GetMatchingGroup(c31504.mdfilter,tp,LOCATION_MZONE,0,nil,tp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
sg=mg:SelectSubGroup(tp,aux.TRUE,true,1,1,tp,c)
end
if sg~=nil then
local mg=Duel.GetMatchingGroup(c31504.mdfilter,tp,LOCATION_MZONE,0,nil,tp,c)
if og then mg=og:Filter(c31504.mdfilter,nil,tp,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=mg:SelectSubGroup(tp,aux.TRUE,true,1,1,tp,c)
if sg then
sg:KeepAlive()
e:SetLabelObject(sg)
return true
......
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