Commit 577580b0 authored by Tachibana's avatar Tachibana 🐟

31

parent 7fe76a9e
Pipeline #26671 passed with stages
in 21 minutes and 27 seconds
--公主强袭
Duel.LoadScript("c17035021.lua")
xpcall(function() dofile("expansions/script/c17035021.lua") end,function() dofile("script/c17035021.lua") end)
function c17033130.initial_effect(c)
pcr.Princess_Strike(c)
end
--公主斩击
Duel.LoadScript("c17035021.lua")
xpcall(function() dofile("expansions/script/c17035021.lua") end,function() dofile("script/c17035021.lua") end)
function c17033140.initial_effect(c)
pcr.Princess_Slash(c)
end
--P.C. 可可罗
Duel.LoadScript("c17035021.lua")
xpcall(function() dofile("expansions/script/c17035021.lua") end,function() dofile("script/c17035021.lua") end)
function c17035020.initial_effect(c)
pcr.Union_Burst(c,nil,pcr.kkrubtg,pcr.kkrubop,1123,Kokkoro)
pcr.Gourmet_Edifice(c,17035020)
......
--P.C. 佩可莉姆/公主形态
Duel.LoadScript("c17035021.lua")
xpcall(function() dofile("expansions/script/c17035021.lua") end,function() dofile("script/c17035021.lua") end)
function c17035210.initial_effect(c)
pcr.Princess_Mode(c)
pcr.atklimit(c)
......
--P.C. ɿ/̬
Duel.LoadScript("c17035021.lua")
--P.C. �ɿ���/������̬
xpcall(function() dofile("expansions/script/c17035021.lua") end,function() dofile("script/c17035021.lua") end)
function c17035220.initial_effect(c)
pcr.Princess_Mode(c)
pcr.atkupbuff(c)
......
--P.C. 凯露/公主形态
Duel.LoadScript("c17035021.lua")
xpcall(function() dofile("expansions/script/c17035021.lua") end,function() dofile("script/c17035021.lua") end)
function c17035230.initial_effect(c)
pcr.Princess_Mode(c)
pcr.negate(c)
......
--公主模式
Duel.LoadScript("c17035021.lua")
function c17035310.initial_effect(c)
pcr.Princess_Mode_Magic(c)
end
\ No newline at end of file
local s,id,o=GetID()
function s.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(2)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetCost(s.pmspcost)
e1:SetTarget(s.pmsptg)
e1:SetOperation(s.pmspop)
c:RegisterEffect(e1)
--draw
local e2=Effect.CreateEffect(c)
e2:SetDescription(1108)
e2:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,17035310)
e2:SetCost(s.pmdrcost)
e2:SetTarget(s.pmdrtg)
e2:SetOperation(s.pmdrop)
c:RegisterEffect(e2)
end
function s.rsfilter(c,e,tp)
return c:IsSetCard(0x7f5) and c:IsReleasable() and c:IsType(TYPE_MONSTER)
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode())
end
function s.spfilter(c,e,tp,code)
return c:IsSetCard(0x97f5) and c.princess_name==code and c:IsCanBeSpecialSummoned(e,0,tp,true,true,POS_FACEUP)
end
function s.pmspcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1)
return true
end
function s.pmsptg(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetReleaseGroup(tp):Filter(s.rsfilter,nil,e,tp)
Debug.Message(#rg)
if chk==0 then
if e:GetLabel()~=1 then return false end
e:SetLabel(0)
return #rg>0
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rc=rg:Select(tp,1,1,nil):GetFirst()
e:SetLabel(rc:GetCode())
Duel.Release(rc,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function s.pmspop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,e:GetLabel()):GetFirst()
if tc and Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)>0 then
tc:CompleteProcedure()
end
end
function s.cfilter(c)
return c:IsSetCard(0x97f5) and c:IsAbleToDeck() and not c:IsPublic()
end
function s.pmdrcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,1,nil):GetFirst()
e:SetLabelObject(g)
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp)
end
function s.pmdrtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeck() and Duel.IsPlayerCanDraw(tp,2) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,2,tp,LOCATION_HAND+LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
end
function s.pmdrop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=e:GetLabelObject()
local mg=Group.FromCards(rc,c)
if Duel.SendtoDeck(mg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)~=0 then
Duel.BreakEffect()
Duel.Draw(tp,2,REASON_EFFECT)
end
end
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