Commit 4f8ba7f2 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12016025.lua

parent a98c79bd
......@@ -13,7 +13,8 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsAbleToHand() and c:GetReasonEffect():GetHandler():IsSetCard(0xfb9)
local ce=c:GetReasonEffect()
return c:IsAbleToHand() and ce and ce:GetHandler():IsSetCard(0xfb9)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,nil) end
......@@ -32,4 +33,4 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,120016025,RESET_PHASE+PHASE_END,0,1)
end
end
end
\ No newline at end of file
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