Commit 3c2a463c authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c16362052.lua

parent 85631cf5
...@@ -114,7 +114,6 @@ function c16362052.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,7 +114,6 @@ function c16362052.op2(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_EQUIP_LIMIT) e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c16362052.op2val) e1:SetValue(c16362052.op2val)
e1:SetLabelObject(ec)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP) e2:SetType(EFFECT_TYPE_EQUIP)
...@@ -125,8 +124,7 @@ function c16362052.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -125,8 +124,7 @@ function c16362052.op2(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c16362052.op2val(e,c) function c16362052.op2val(e,c)
local ec=e:GetLabelObject() return e:GetOwner()==c
return e:GetOwner()==ec
end end
function c16362052.lefilter(c) function c16362052.lefilter(c)
return c:IsType(TYPE_SPELL) and c:IsPreviousLocation(LOCATION_ONFIELD) return c:IsType(TYPE_SPELL) and c:IsPreviousLocation(LOCATION_ONFIELD)
......
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