Commit 1418b02f authored by Huangnan's avatar Huangnan

fix

parent 59c113c7
Pipeline #33303 passed with stages
in 64 minutes and 42 seconds
...@@ -38,11 +38,12 @@ function cm.ctcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,11 +38,12 @@ function cm.ctcon(e,tp,eg,ep,ev,re,r,rp)
end end
--summon --summon
function cm.thfilter(c) function cm.thfilter(c)
return c:IsSetCard(0x504) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsAbleToHand() return c:IsSetCard(0x504) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE+LOCATION_REMOVED) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE+LOCATION_REMOVED)
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
...@@ -30,7 +30,7 @@ function c60001172.initial_effect(c) ...@@ -30,7 +30,7 @@ function c60001172.initial_effect(c)
--修改全局检查效果 --修改全局检查效果
if not c60001172.global_check then if not c60001172.global_check then
c60001172.global_check=true c60001172.global_check=true
local e4=Effect.CreateEffect() local e4=Effect.GlobalEffect()
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_SSET) e4:SetCode(EVENT_SSET)
e4:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e4:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
......
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