Commit 62f407af authored by nekrozar's avatar nekrozar Committed by DailyShana

fix Cocoon of Evolution (#535)

parent 1cafcd12
......@@ -34,6 +34,7 @@ function c40240595.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetValue(c40240595.eqlimit)
e1:SetLabelObject(tc)
e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
......@@ -48,13 +49,13 @@ function c40240595.eqop(e,tp,eg,ep,ev,re,r,rp)
--equip effect
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_SET_ATTACK)
e3:SetCode(EFFECT_SET_BASE_ATTACK)
e3:SetValue(0)
e3:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_EQUIP)
e4:SetCode(EFFECT_SET_DEFENSE)
e4:SetCode(EFFECT_SET_BASE_DEFENSE)
e4:SetValue(2000)
e4:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e4)
......@@ -70,5 +71,5 @@ function c40240595.checkop(e,tp,eg,ep,ev,re,r,rp)
c:SetTurnCounter(ct)
end
function c40240595.eqlimit(e,c)
return c:IsCode(58192742)
return c==e:GetLabelObject()
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