Commit 62f4c265 authored by GuGu's avatar GuGu

Update c999527.lua 额外卡组特召检测

parent da8d1c77
Pipeline #20518 passed with stage
in 1 minute and 29 seconds
......@@ -14,6 +14,7 @@ function M.initial_effect(c)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e3:SetCountLimit(1, Mid)
e3:SetCondition(M.dccon)
e3:SetTarget(M.dctg)
e3:SetOperation(M.dcop)
c:RegisterEffect(e3)
......@@ -44,6 +45,11 @@ function M.EnableChangeCode(c, code, location, condition)
return e1
end
function M.dccon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_EXTRA)
end
function M.dctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk == 0 then
return Duel.GetFieldGroupCount(tp, LOCATION_HAND, 0) > 0 and Duel.GetFieldGroupCount(tp, 0, LOCATION_HAND) > 0
......
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