Commit 346afbb5 authored by nekrozar's avatar nekrozar Committed by DailyShana

fix Light End Dragon (#591)

parent 83026afb
...@@ -28,8 +28,7 @@ end ...@@ -28,8 +28,7 @@ end
function c25132288.operation(e,tp,eg,ep,ev,re,r,rp) function c25132288.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsFaceup() if c:IsRelateToEffect(e) and c:IsFaceup() and c:GetAttack()>=500 and c:GetDefense()>=500 then
and c:GetAttack()>=500 and c:GetDefense()>=500 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT) e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
...@@ -40,6 +39,7 @@ function c25132288.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,6 +39,7 @@ function c25132288.operation(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE) e2:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if tc:IsRelateToEffect(e) and tc:IsFaceup() and not c:IsHasEffect(EFFECT_REVERSE_UPDATE) then
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
...@@ -50,4 +50,5 @@ function c25132288.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,4 +50,5 @@ function c25132288.operation(e,tp,eg,ep,ev,re,r,rp)
e4:SetCode(EFFECT_UPDATE_DEFENSE) e4:SetCode(EFFECT_UPDATE_DEFENSE)
tc:RegisterEffect(e4) tc:RegisterEffect(e4)
end end
end
end 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