Commit 6eba1f82 authored by Huangnan's avatar Huangnan

fix

parent 22f77745
Pipeline #33113 passed with stages
in 68 minutes and 39 seconds
......@@ -195,7 +195,7 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
tc:RegisterEffect(e2,true)
elseif op==1 then
Duel.NegateSummon(tc)
Duel.NegateSummon(tc)
if not Duel.Equip(tp,tc,c,false,true) then return end
--equip limit
local e1=Effect.CreateEffect(tc)
......@@ -234,6 +234,22 @@ function cm.actop(e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.eqfilter),tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,tp)
if g:GetCount()>0 then
local tc=g:GetFirst()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local record_type=tc:GetOriginalType()
tc:SetCardData(CARDDATA_TYPE,record_type|TYPE_EQUIP)
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD,0,1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_MOVE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetLabel(record_type)
e2:SetOperation(function(de)
local c=de:GetHandler()
dc:SetCardData(CARDDATA_TYPE,de:GetLabel())
de:Reset()
end
)
tc:RegisterEffect(e2)
if not Duel.Equip(tp,tc,c) then return end
--equip limit
local e1=Effect.CreateEffect(c)
......
......@@ -5,7 +5,7 @@ function cm.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunFunRep(c,c79100330.mfilter,c79100330.matfilter2,1,4,true)
aux.EnableChangeCode(c,79100260,LOCATION_MZONE+LOCATION_REMOVED)
aux.EnableChangeCode(c,79100260,LOCATION_MZONE+LOCATION_GRAVE)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(79100330,0))
......
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