Commit b8702845 authored by salix5's avatar salix5

fix

parent f1f8ef41
...@@ -35,8 +35,7 @@ function c42551040.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -35,8 +35,7 @@ function c42551040.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c42551040.posop(e,tp,eg,ep,ev,re,r,rp) function c42551040.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) and Duel.ChangePosition(tc,POS_FACEUP_DEFENCE)~=0 then
if tc:GetDefence()>0 and Duel.ChangePosition(tc,POS_FACEUP_DEFENCE)~=0 then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_DEFENCE_FINAL) e1:SetCode(EFFECT_SET_DEFENCE_FINAL)
...@@ -44,5 +43,4 @@ function c42551040.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,5 +43,4 @@ function c42551040.posop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
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