Commit 69d4140b authored by sidschingis's avatar sidschingis

fix

atk should be decreased even if the target cannot be destroyed
parent 2e5a5ab7
...@@ -77,15 +77,16 @@ function c83438826.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,15 +77,16 @@ function c83438826.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local eq=c:GetEquipTarget() local eq=c:GetEquipTarget()
if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) or tc:IsFaceup() if not c:IsRelateToEffect(e) or eq:IsImmuneToEffect(e) or not eq:IsAttackAbove(500) then return end
or eq:IsImmuneToEffect(e) or not eq:IsAttackAbove(500) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
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) e1:SetReset(RESET_EVENT+0x1fe0000)
eq:RegisterEffect(e1) eq:RegisterEffect(e1)
Duel.Destroy(tc,REASON_EFFECT) if tc:IsRelateToEffect(e) and tc:IsFaceup()
Duel.Destroy(tc,REASON_EFFECT)
end
end end
function c83438826.eqcon(e,tp,eg,ep,ev,re,r,rp) function c83438826.eqcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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