Commit 26fc5200 authored by wyykak's avatar wyykak

fix 25504

parent b8f2217b
......@@ -46,7 +46,7 @@ function c25504.initial_effect(c)
e5:SetValue(c25504.actlimit)
c:RegisterEffect(e5)
end
function c25504.lkfilter(c,lc)
function c25504.lkfilter(c,lc,tp)
return c:IsSetCard(0x114) and c:GetLevel()==6 and c:IsAbleToRemoveAsCost() and Duel.GetLocationCountFromEx(tp,tp,c,lc)>0
end
function c25504.mdfilter(c)
......@@ -56,11 +56,11 @@ function c25504.lkcon(e,c)
if c==nil then return true end
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c25504.lkfilter,tp,LOCATION_MZONE,0,nil,c)
local mg=Duel.GetMatchingGroup(c25504.lkfilter,tp,LOCATION_MZONE,0,nil,c,tp)
return mg:GetCount()>0 and Duel.IsExistingMatchingCard(c25504.mdfilter,tp,LOCATION_GRAVE,0,1,nil)
end
function c25504.lkop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c25504.lkfilter,tp,LOCATION_MZONE,0,nil,c)
local mg=Duel.GetMatchingGroup(c25504.lkfilter,tp,LOCATION_MZONE,0,nil,c,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=mg:Select(tp,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c25504.mdfilter,tp,LOCATION_GRAVE,0,1,1,nil)
......
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