Commit 4239a3a9 authored by Tachibana's avatar Tachibana

1145141919810

parent a05cc06e
Pipeline #14183 passed with stages
in 36 minutes and 4 seconds
--恶魔仙精 贝拉冬娜
xpcall(function() require("expansions/script/c16199990") end,function() require("script/c16199990") end)
local m,cm=rk.set(16114208,"FAIRY",1)
local m,cm=rk.set(16114208,"FAIRY",1,)
function cm.initial_effect(c)
c:SetSPSummonOnce(m)
c:EnableReviveLimit()
......@@ -62,13 +62,21 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,1)
end
function cm.check(c,tp)
return c:IsControler(tp) and c:IsLocation(LOCATION_DECK)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if tg:GetCount()<=0 then return end
Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
if not og:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) then return end
Duel.ShuffleDeck(tp)
if og:GetCount()<1 then return end
if og:IsExists(cm.check,1,nil,tp) then
Duel.ShuffleDeck(tp)
end
if og:IsExists(cm.check,1,nil,1-tp) then
Duel.ShuffleDeck(1-tp)
end
Duel.BreakEffect()
Duel.Recover(tp,1000,REASON_EFFECT)
end
\ No newline at end of file
......@@ -62,13 +62,21 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,1)
end
function cm.check(c,tp)
return c:IsControler(tp) and c:IsLocation(LOCATION_DECK)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if tg:GetCount()<=0 then return end
Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
if not og:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) then return end
Duel.ShuffleDeck(tp)
if og:GetCount()<1 then return end
if og:IsExists(cm.check,1,nil,tp) then
Duel.ShuffleDeck(tp)
end
if og:IsExists(cm.check,1,nil,1-tp) then
Duel.ShuffleDeck(1-tp)
end
Duel.BreakEffect()
Duel.Recover(tp,1000,REASON_EFFECT)
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