Commit f59900ea authored by sidschingis's avatar sidschingis

Update c79965360.lua

fixed interaction with Forbidden Lance etc.
parent c3843aaa
...@@ -18,9 +18,9 @@ function c79965360.initial_effect(c) ...@@ -18,9 +18,9 @@ function c79965360.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--destroy rep --destroy rep
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_EQUIP) e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_DESTROY_REPLACE) e3:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e3:SetTarget(c79965360.reptg) e3:SetValue(c79965360.valcon)
e3:SetCountLimit(1) e3:SetCountLimit(1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--destroy --destroy
...@@ -54,11 +54,8 @@ function c79965360.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,11 +54,8 @@ function c79965360.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc) Duel.Equip(tp,e:GetHandler(),tc)
end end
end end
function c79965360.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c79965360.valcon(e,re,r,rp)
local c=e:GetHandler() return r==REASON_BATTLE
local tc=c:GetEquipTarget()
if chk==0 then return tc:IsReason(REASON_BATTLE) end
return true
end end
function c79965360.descon(e,tp,eg,ep,ev,re,r,rp) function c79965360.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget()==Duel.GetAttacker() and Duel.GetAttackTarget() return e:GetHandler():GetEquipTarget()==Duel.GetAttacker() and Duel.GetAttackTarget()
......
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