Commit bbf7e7e7 authored by whenmo's avatar whenmo Committed by GitHub

Update VgFuncLib.lua

parent 9979184b
......@@ -245,10 +245,9 @@ function VgF.Call(g,sumtype,sp,zone)
end
return Duel.SpecialSummonComplete()
end
function VgF.LvCondition(e)
local c=e:GetHandler()
local tp=c:GetControler()
local lv=c:GetLevel()
function VgF.LvCondition(e_or_c)
local c = VgF.GetValueType(e_or_c) == "Effect" and e_or_c:GetHandler() or e_or_c
local tp, lv = c:GetControler(), c:GetLevel()
return Duel.IsExistingMatchingCard(VgF.LvConditionFilter,tp,LOCATION_MZONE,0,1,nil,lv)
end
function VgF.LvConditionFilter(c,lv)
......
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