Commit c9d53b77 authored by Amiya's avatar Amiya

修复

parent e21e0380
Pipeline #38718 failed with stages
in 79 minutes and 57 seconds
...@@ -20,7 +20,6 @@ function s.initial_effect(c) ...@@ -20,7 +20,6 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_EQUIP) e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(s.ibcon) e2:SetCondition(s.ibcon)
e2:SetValue(aux.tgoval) e2:SetValue(aux.tgoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -55,6 +54,27 @@ function s.initial_effect(c) ...@@ -55,6 +54,27 @@ function s.initial_effect(c)
e6:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_QUICK_O) e6:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_QUICK_O)
e6:SetCondition(s.tgcon) e6:SetCondition(s.tgcon)
c:RegisterEffect(e6) c:RegisterEffect(e6)
--change type
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_EQUIP)
e7:SetCode(EFFECT_ADD_TYPE)
e7:SetValue(TYPE_EFFECT)
e7:SetCondition(s.efcon)
c:RegisterEffect(e7)
local e8=e7:Clone()
e8:SetCode(EFFECT_REMOVE_TYPE)
e8:SetValue(TYPE_NORMAL)
c:RegisterEffect(e8)
local e9=Effect.CreateEffect(c)
e9:SetType(EFFECT_TYPE_XMATERIAL)
e9:SetCode(EFFECT_ADD_TYPE)
e9:SetValue(TYPE_EFFECT)
e9:SetCondition(s.tgcon)
c:RegisterEffect(e9)
local e10=e9:Clone()
e10:SetCode(EFFECT_REMOVE_TYPE)
e10:SetValue(TYPE_NORMAL)
c:RegisterEffect(e10)
end end
function s.ibcon(e,tp,eg,ep,ev,re,r,rp) function s.ibcon(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget() local ec=e:GetHandler():GetEquipTarget()
...@@ -132,4 +152,8 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -132,4 +152,8 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToBattle() and c:IsFaceup() then if c:IsRelateToBattle() and c:IsFaceup() then
Duel.Destroy(c,REASON_EFFECT) Duel.Destroy(c,REASON_EFFECT)
end end
end
function s.efcon(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget()
return ec:IsSetCard(0x2d3)
end end
\ No newline at end of file
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