Commit f44b7192 authored by wyykak's avatar wyykak

repair xyz enhancement for 2pick

parent ea423b6b
......@@ -46,6 +46,9 @@ function this.op1(e,tp,eg,ep,ev,re,r,rp)
if not tc or not tc:IsRelateToEffect(e) or not this.filter1(tc) then
return
end
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
g:ForEach(function(c)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE|EFFECT_FLAG_CANNOT_DISABLE|EFFECT_FLAG_UNCOPYABLE)
......@@ -53,8 +56,8 @@ function this.op1(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CHANGE_LEVEL)
e1:SetValue(tc:GetLevel())
e1:SetReset(RESETS_STANDARD)
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
g:ForEach(function(c) c:RegisterEffect(e1) end)
c:RegisterEffect(e1)
end)
end
function this.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
......
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