Commit ad66db28 authored by jwyxym's avatar jwyxym Committed by GitHub

Add files via upload

parent ced2abe2
...@@ -882,7 +882,7 @@ function VgD.QuickSpell(c,code,op,cost,con,tg) ...@@ -882,7 +882,7 @@ function VgD.QuickSpell(c,code,op,cost,con,tg)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(code) e1:SetCode(code)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
if VgF.GetValueType(con)=="function" then e1:SetCondition(con) end if VgF.GetValueType(con)=="function" then e1:SetCondition(con) end
if VgF.GetValueType(cost)=="function" then e1:SetCost(cost) end if VgF.GetValueType(cost)=="function" then e1:SetCost(cost) end
if VgF.GetValueType(tg)=="function" then e1:SetTarget(tg) end if VgF.GetValueType(tg)=="function" then e1:SetTarget(tg) end
......
...@@ -17,5 +17,8 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,5 +17,8 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsExists(vgf.Not(Card.IsLocation),1,nil,LOCATION_GRAVE) return eg:IsExists(cm.filter,1,nil,tp)
end
function cm.filter(c,tp)
return c:IsLocation(LOCATION_GZONE) and c:IsControler(tp)
end end
\ No newline at end of file
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