Commit 7e723756 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12048006.lua

parent 0ef5229a
...@@ -66,27 +66,24 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,27 +66,24 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
while tc do while tc do
if not Duel.Equip(tp,tc,c,true) then return end if not Duel.Equip(tp,tc,c,true) then return end
if tc:GetOriginalType()~=TYPE_SPELL+TYPE_EQUIP then if tc:GetOriginalType()~=TYPE_SPELL+TYPE_EQUIP then
local e1=Effect.CreateEffect(c) local e2=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e2:SetLabel(tc:GetFieldID())
e1:SetCode(EFFECT_EQUIP_LIMIT) Duel.RegisterEffect(e2,tp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetValue(cm.eqlimit) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetLabelObject(c) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
tc:RegisterEffect(e1) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
end e1:SetTargetRange(1,0)
local e2=Effect.CreateEffect(c) e1:SetValue(cm.aclimit)
e2:SetDescription(aux.Stringid(m,2)) e1:SetReset(RESET_EVENT+RESET_PHASE+PHASE_END)
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetLabel(tc:GetCode())
e2:SetType(EFFECT_TYPE_EQUIP) e1:SetLabelObject(e2)
e2:SetCode(EFFECT_UPDATE_ATTACK) Duel.RegisterEffect(e1,tp)
e2:SetValue(300) tc=g:GetNext()
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
tc=tg:GetNext()
end end
end end
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
\ No newline at end of file
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