Commit 7e65e272 authored by 未闻皂名's avatar 未闻皂名

2024/7/19 新增:念动力新卡

parent 04554f49
No preview for this file type
......@@ -273,7 +273,7 @@ function RushDuel.GetFusionSummonData(e, tp, matfilter, spfilter, exfilter, s_ra
local effects = {Duel.IsPlayerAffectedByEffect(tp, EFFECT_CHAIN_MATERIAL)}
for _, effect in ipairs(effects) do
local target = effect:GetTarget()
local mg2 = target(effect, e, tp)
local mg2 = target(effect, e, tp, mg)
if #mg2 > 0 then
local mf = effect:GetValue()
local sg2 = Duel.GetMatchingGroup(RushDuel.FusionSpecialSummonFilter, tp, LOCATION_EXTRA, 0, nil, e, tp, mg2, mf, gc, chkf, spfilter)
......
......@@ -12,6 +12,8 @@ function cm.initial_effect(c)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(cm.target)
c:RegisterEffect(e1)
--Continuous Effect
RD.AddContinuousEffect(c,e1)
end
--Pierce
function cm.target(e,c)
......
local m=120264042
local list={120253014,120253012,120196050,120253051}
local cm=_G["c"..m]
cm.name="曼陀林最时髦掠夺者"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,list[1],list[2])
-- Fusion Expend
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CHAIN_MATERIAL)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,1)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
e1:SetValue(cm.value)
c:RegisterEffect(e1)
--Continuous Effect
RD.AddContinuousEffect(c,e1)
end
-- Fusion Expend
function cm.filter(c,e)
return c:IsRace(RACE_PSYCHO) and c:IsAbleToDeck() and c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e)
end
function cm.target(e,te,tp,mg)
if te:GetHandler():IsCode(list[3],list[4]) then
local g=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_GRAVE,0,nil,te)
g:Merge(mg:Filter(Card.IsAbleToDeck,nil))
return g
else
return Group.CreateGroup()
end
end
function cm.operation(e,te,tp,tc,mat,sumtype)
if mat:IsExists(Card.IsLocation,1,nil,LOCATION_GRAVE) then
RD.FusionToDeck(tp,mat)
else
RD.FusionToGrave(tp,mat)
end
end
function cm.value(fc)
return fc:IsLevelAbove(8)
end
\ No newline at end of file
local m=120264052
local list={120196050,120253051}
local cm=_G["c"..m]
cm.name="念力装备返始"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DECKDES+CATEGORY_TODECK+CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.filter(c)
return c:IsCode(list[1],list[2]) and c:IsAbleToDeck()
end
function cm.thfilter(c)
return ((c:IsAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_PSYCHO)) or c:IsCode(list[1],list[2])) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,2) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,2)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if RD.SendDeckTopToGraveAndExists(tp,2) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
Duel.BreakEffect()
if RD.SendToDeckTopOrBottom(g,tp,aux.Stringid(m,2),aux.Stringid(m,3))~=0 then
RD.CanSelectAndDoAction(aux.Stringid(m,4),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(sg)
RD.SendToHandAndExists(sg,1-tp)
end)
end
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