Commit 0cf831ce authored by VanillaSalt's avatar VanillaSalt

fix

parent fc29a553
--魂吸 --魂吸
function c68073522.initial_effect(c) function c68073522.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -12,18 +12,23 @@ function c68073522.initial_effect(c) ...@@ -12,18 +12,23 @@ function c68073522.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_REMOVE) e2:SetCode(EVENT_REMOVE)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c68073522.condition)
e2:SetTarget(c68073522.target) e2:SetTarget(c68073522.target)
e2:SetOperation(c68073522.operation) e2:SetOperation(c68073522.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c68073522.filter(c,e,tp) function c68073522.filter(c)
return not c:IsType(TYPE_TOKEN) return not c:IsType(TYPE_TOKEN)
end end
function c68073522.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c68073522.filter,1,nil)
end
function c68073522.target(e,tp,eg,ep,ev,re,r,rp,chk) function c68073522.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) and eg:IsExists(c68073522.filter,1,nil,e,tp) end if chk==0 then return e:GetHandler():IsRelateToEffect(e) end
local ct=eg:FilterCount(c68073522.filter,nil)
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(eg:GetCount()*500) Duel.SetTargetParam(ct*500)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,0,0,tp,eg:GetCount()*500) Duel.SetOperationInfo(0,CATEGORY_RECOVER,0,0,tp,ct*500)
end end
function c68073522.operation(e,tp,eg,ep,ev,re,r,rp) function c68073522.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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