Commit 9e4446a5 authored by 花桃白音's avatar 花桃白音

fix

parent ce23e394
......@@ -14,13 +14,18 @@ function cm.initial_effect(c)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(function(e,c)
if c==nil then return true end
local sg=cm.pickup
return sg and sg:GetCount()>0
end)
e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk,c)
local sg=cm.pickup
if sg then
sg:KeepAlive()
e:SetLabelObject(sg)
cm.pickup=nil
return true else return false
return sg:GetCount()>0 else return false
end
end)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
......
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