Commit dfff23e2 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12039004.lua

parent 3d54814b
......@@ -30,9 +30,9 @@ end
function cm.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local lv=c:GetLevel()
if chk==0 then return Duel.IsExistingMatchingCard(cm.lvfilter,tp,LOCATION_DECK,0,1,nil,c) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.lvfilter,tp,LOCATION_DECK,0,1,nil,c:GetLevel()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,cm.lvfilter,tp,LOCATION_DECK,0,1,1,nil,tp)
local g=Duel.SelectMatchingCard(tp,cm.lvfilter,tp,LOCATION_DECK,0,1,1,nil,c:GetLevel())
Duel.Release(g,REASON_COST)
e:SetLabel(g:GetFirst():GetLevel())
end
......@@ -50,4 +50,4 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.efilter(e,te)
return te:IsActiveType(TYPE_TRAP)
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