Commit e7201fcd authored by DailyShana's avatar DailyShana

fix Fluorohydride/ygopro#1675

parent 10d6c6c4
...@@ -47,13 +47,13 @@ function c1281505.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,13 +47,13 @@ function c1281505.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_EQUIP_LIMIT) e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(c1281505.eqlimit) e1:SetValue(c1281505.eqlimit)
e1:SetLabelObject(tc)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
function c1281505.eqlimit(e,c) function c1281505.eqlimit(e,c)
return c==e:GetLabelObject() local tp=e:GetHandlerPlayer()
return c:IsControler(tp)
end end
function c1281505.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c1281505.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -49,13 +49,13 @@ function c38679204.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,13 +49,13 @@ function c38679204.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_EQUIP_LIMIT) e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(c38679204.eqlimit) e1:SetValue(c38679204.eqlimit)
e1:SetLabelObject(tc)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
function c38679204.eqlimit(e,c) function c38679204.eqlimit(e,c)
return c==e:GetLabelObject() local tp=e:GetHandlerPlayer()
return c:IsControler(tp)
end end
function c38679204.descon(e,tp,eg,ep,ev,re,r,rp) function c38679204.descon(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget() local ec=e:GetHandler():GetEquipTarget()
......
...@@ -46,13 +46,13 @@ function c74064212.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,13 +46,13 @@ function c74064212.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_EQUIP_LIMIT) e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(c74064212.eqlimit) e1:SetValue(c74064212.eqlimit)
e1:SetLabelObject(tc)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
function c74064212.eqlimit(e,c) function c74064212.eqlimit(e,c)
return c==e:GetLabelObject() local tp=e:GetHandlerPlayer()
return c:IsControler(tp)
end end
function c74064212.atkcon(e) function c74064212.atkcon(e)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
......
...@@ -50,13 +50,13 @@ function c75886890.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,13 +50,13 @@ function c75886890.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_EQUIP_LIMIT) e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(c75886890.eqlimit) e1:SetValue(c75886890.eqlimit)
e1:SetLabelObject(tc)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
function c75886890.eqlimit(e,c) function c75886890.eqlimit(e,c)
return c==e:GetLabelObject() local tp=e:GetHandlerPlayer()
return c:IsControler(tp)
end end
function c75886890.eqcost2(e,tp,eg,ep,ev,re,r,rp,chk) function c75886890.eqcost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
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