Commit b5c52326 authored by nekrozar's avatar nekrozar

fix

parent feb6d3e7
...@@ -5,7 +5,8 @@ function c2376209.initial_effect(c) ...@@ -5,7 +5,8 @@ function c2376209.initial_effect(c)
e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(c2376209.condition)
e1:SetTarget(c2376209.target) e1:SetTarget(c2376209.target)
e1:SetOperation(c2376209.operation) e1:SetOperation(c2376209.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -21,6 +22,9 @@ function c2376209.initial_effect(c) ...@@ -21,6 +22,9 @@ function c2376209.initial_effect(c)
e2:SetOperation(c2376209.spop) e2:SetOperation(c2376209.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c2376209.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c2376209.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c2376209.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
...@@ -34,7 +38,7 @@ function c2376209.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,7 +38,7 @@ function c2376209.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(500) e1:SetValue(500)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENCE) e2:SetCode(EFFECT_UPDATE_DEFENCE)
......
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