Commit d06c48da authored by Tachibana's avatar Tachibana

eme

parent 4a5b33b5
......@@ -155,9 +155,24 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
else
op=Duel.SelectOption(tp,aux.Stringid(m,5))+1
end
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_ADJUST)
e0:SetRange(LOCATION_MZONE)
e0:SetReset(RESET_EVENT+0x7e0000)
e0:SetCondition(function (e,tp)
return e:GetHandler():IsLocation(LOCATION_MZONE)
end
)
tc:RegisterEffect(e0,true)
if op==0 then
Duel.GetControl(tc,tp)
e0:SetOperation( function (e,sp)
Duel.GetControl(tc,tp)
end
)
elseif op==1 then
e0:SetOperation( function (e,sp)
if not Duel.Equip(tp,tc,c,false,true) then return end
--equip limit
local e1=Effect.CreateEffect(c)
......@@ -167,7 +182,9 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetLabelObject(c)
e1:SetValue(cm.eqlimit)
tc:RegisterEffect(e1)
tc:RegisterEffect(e1,true)
end
)
end
end
Duel.EquipComplete()
......
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