Commit 37c29a72 authored by 聖園ミカ's avatar 聖園ミカ 🐟

54188

parent c6e448d1
Pipeline #30683 passed with stages
in 27 minutes and 47 seconds
No preview for this file type
...@@ -421,7 +421,7 @@ function s.initial_effect(c) ...@@ -421,7 +421,7 @@ function s.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.filter(c,tp) function s.filter(c,tp)
return c:IsType(TYPE_FIELD) and c:IsOriginalCodeRule(22702055) and c:GetActivateEffect():IsActivatable(tp,true,true) return c:IsType(TYPE_FIELD) and c:IsCode(id+1) and c:GetActivateEffect():IsActivatable(tp,true,true)
end end
function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,tp) end
......
...@@ -2,8 +2,6 @@ local m=53752016 ...@@ -2,8 +2,6 @@ local m=53752016
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="为离开的再生" cm.name="为离开的再生"
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,22702055)
aux.EnableChangeCode(c,22702055,LOCATION_SZONE+LOCATION_GRAVE)
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN) e0:SetCode(EVENT_FREE_CHAIN)
......
...@@ -75,6 +75,7 @@ function Card.GetAllStickers(c) ...@@ -75,6 +75,7 @@ function Card.GetAllStickers(c)
return stickers return stickers
end end
function Card.GetStickerCount(c,sticker) function Card.GetStickerCount(c,sticker)
if not c:GetFlagEffect(STICKER_FLAG) then return 0 end
if not sticker then if not sticker then
return c:GetFlagEffect(STICKER_FLAG) return c:GetFlagEffect(STICKER_FLAG)
else else
...@@ -88,6 +89,7 @@ function Card.GetStickerCount(c,sticker) ...@@ -88,6 +89,7 @@ function Card.GetStickerCount(c,sticker)
end end
end end
function Duel.GetStickerCountOnPlayer(p,sticker) function Duel.GetStickerCountOnPlayer(p,sticker)
if not Duel.GetFlagEffect(STICKER_FLAG) then return 0 end
if not sticker then if not sticker then
return Duel.GetFlagEffect(STICKER_FLAG) return Duel.GetFlagEffect(STICKER_FLAG)
else else
......
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