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

Add files via upload

parent 46cb737b
...@@ -29,6 +29,9 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -29,6 +29,9 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetLabel(tc:GetFieldID())
Duel.RegisterEffect(e2,tp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
...@@ -37,11 +40,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -37,11 +40,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
e1:SetValue(cm.aclimit) e1:SetValue(cm.aclimit)
e1:SetReset(RESET_EVENT+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESET_PHASE+PHASE_END)
e1:SetLabel(tc:GetCode()) e1:SetLabel(tc:GetCode())
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetLabel(tc:GetFieldID())
Duel.RegisterEffect(e2,tp)
e1:SetLabelObject(e2) e1:SetLabelObject(e2)
Duel.RegisterEffect(e1,tp)
tc=g:GetNext() tc=g:GetNext()
end end
end end
...@@ -66,24 +66,27 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,24 +66,27 @@ 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 e2=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(c)
e2:SetLabel(tc:GetFieldID()) e1:SetType(EFFECT_TYPE_SINGLE)
Duel.RegisterEffect(e2,tp) e1:SetCode(EFFECT_EQUIP_LIMIT)
local e1=Effect.CreateEffect(e:GetHandler()) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetValue(cm.eqlimit)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetLabelObject(c)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) tc:RegisterEffect(e1)
e1:SetTargetRange(1,0) end
e1:SetValue(cm.aclimit) local e2=Effect.CreateEffect(c)
e1:SetReset(RESET_EVENT+RESET_PHASE+PHASE_END) e2:SetDescription(aux.Stringid(m,2))
e1:SetLabel(tc:GetCode()) e2:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetLabelObject(e2) e2:SetType(EFFECT_TYPE_EQUIP)
Duel.RegisterEffect(e1,tp) e2:SetCode(EFFECT_UPDATE_ATTACK)
tc=g:GetNext() e2:SetValue(300)
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