Commit 4b070736 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix (#1651)

parent 94c607ff
...@@ -15,6 +15,7 @@ function c33114323.initial_effect(c) ...@@ -15,6 +15,7 @@ function c33114323.initial_effect(c)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(0x34,0x34) e2:SetTargetRange(0x34,0x34)
e2:SetCondition(c33114323.effcon)
e2:SetTarget(c33114323.efftg) e2:SetTarget(c33114323.efftg)
e2:SetValue(aux.tgoval) e2:SetValue(aux.tgoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -39,6 +40,11 @@ function c33114323.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,6 +40,11 @@ function c33114323.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 c33114323.effcon(e)
local c=e:GetHandler()
local tc=c:GetEquipTarget()
return tc and c:GetControler()==tc:GetControler()
end
function c33114323.efftg(e,c) function c33114323.efftg(e,c)
return c~=e:GetHandler():GetEquipTarget() and c:IsType(TYPE_MONSTER) and (c:IsFaceup() or not c:IsLocation(LOCATION_REMOVED)) return c~=e:GetHandler():GetEquipTarget() and c:IsType(TYPE_MONSTER) and (c:IsFaceup() or not c:IsLocation(LOCATION_REMOVED))
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