Commit 96f89082 authored by 未闻皂名's avatar 未闻皂名

2026/3/4 新增:手揉小龙,灵术指南书

parent e4cf3a1a
Pipeline #43539 passed with stages
in 8 minutes and 10 seconds
No preview for this file type
local cm,m=GetID()
cm.name="王家魔族守护者"
cm.name="王家魔族·守护者"
function cm.initial_effect(c)
--Extra Tribute
local e1=Effect.CreateEffect(c)
......
local cm,m=GetID()
local list={120301019}
cm.name="灵术指南书"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.filter(c)
return c:IsRace(RACE_SPELLCASTER) and c:IsAttack(c,500,1900) and RD.IsDefense(c,1500)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsPlayerNoActivateInThisTurn(tp,list[1])
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<5 then return end
Duel.ConfirmDecktop(tp,5)
local ct=Duel.GetDecktopGroup(tp,5):FilterCount(cm.filter,nil)
if ct>1 then
local max=math.floor(ct/2)
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_DESTROY,nil,tp,0,LOCATION_ONFIELD,1,max,nil,function(g)
if Duel.Destroy(g,REASON_EFFECT)==2 then
RD.CreateHintEffect(e,aux.Stringid(m,2),tp,1,0,RESET_PHASE+PHASE_END)
RD.CreateOnlySoleDirectAttackEffect(e,20301019,tp,LOCATION_MZONE,0,RESET_PHASE+PHASE_END)
end
end)
end
if ct>0 then
Duel.SortDecktop(tp,tp,5)
RD.SendDeckTopToBottom(tp,5)
end
end
\ No newline at end of file
local cm,m=GetID()
cm.name="手揉小龙"
function cm.initial_effect(c)
--Confirm
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_RECOVER+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Confirm
cm.cost=RD.CostChangeSelfPosition(POS_FACEUP_ATTACK,POS_FACEUP_DEFENSE)
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>1
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,1-tp,100)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.Recover(1-tp,100,REASON_EFFECT)~=0 then
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
if g:GetCount()==0 then return end
local tc=g:RandomSelect(tp,1):GetFirst()
Duel.ConfirmCards(1-tp,tc)
if tc:IsRace(RACE_DRAGON)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and RD.IsCanBeSpecialSummoned(tc,e,tp,POS_FACEUP)
and Duel.SelectEffectYesNo(tp,tc,aux.Stringid(m,1)) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
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