Commit 60d48861 authored by 未闻皂名's avatar 未闻皂名

2024/5/5 新增:KP17新卡

parent 13e7b577
Pipeline #26841 passed with stages
in 6 minutes and 43 seconds
No preview for this file type
...@@ -5,6 +5,9 @@ LEGEND_MONSTER = 120000000 ...@@ -5,6 +5,9 @@ LEGEND_MONSTER = 120000000
LEGEND_SPELL = 120000001 LEGEND_SPELL = 120000001
LEGEND_TRAP = 120000002 LEGEND_TRAP = 120000002
-- 暗物质自动偶·迷雾
CODE_DARK_MATTER_MIST=120000101
RushDuel.LegendCodes = { -- 青眼白龙 RushDuel.LegendCodes = { -- 青眼白龙
{120120000, 120198001, 120231001}, -- 真红眼黑龙 {120120000, 120198001, 120231001}, -- 真红眼黑龙
{120125001, 120203016, 120229101}, -- 黑魔术师 {120125001, 120203016, 120229101}, -- 黑魔术师
......
...@@ -12,4 +12,4 @@ function cm.initial_effect(c) ...@@ -12,4 +12,4 @@ function cm.initial_effect(c)
RD.AddContinuousEffect(c,e1) RD.AddContinuousEffect(c,e1)
end end
--Double Tribute --Double Tribute
cm.trival=RD.ValueDoubleTributeAttrRace(ATTRIBUTE_FIRE,nil) cm.trival=RD.ValueDoubleTributeAttrRace(ATTRIBUTE_FIRE,nil,true)
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,7 @@ function cm.initial_effect(c) ...@@ -18,7 +18,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
--Activate --Activate
cm.trival=RD.ValueDoubleTributeAll() cm.trival=RD.ValueDoubleTributeAll(true)
function cm.target(c,e,tp,chk) function cm.target(c,e,tp,chk)
return c:IsControler(tp) and c:IsFaceup() and c:IsType(TYPE_NORMAL) and c:IsAttackBelow(1400) return c:IsControler(tp) and c:IsFaceup() and c:IsType(TYPE_NORMAL) and c:IsAttackBelow(1400)
end end
\ No newline at end of file
...@@ -12,4 +12,4 @@ function cm.initial_effect(c) ...@@ -12,4 +12,4 @@ function cm.initial_effect(c)
RD.AddContinuousEffect(c,e1) RD.AddContinuousEffect(c,e1)
end end
--Double Tribute --Double Tribute
cm.trival=RD.ValueDoubleTributeAttrType(ATTRIBUTE_LIGHT,TYPE_NORMAL) cm.trival=RD.ValueDoubleTributeAttrType(ATTRIBUTE_LIGHT,TYPE_NORMAL,true)
\ No newline at end of file \ No newline at end of file
...@@ -12,4 +12,4 @@ function cm.initial_effect(c) ...@@ -12,4 +12,4 @@ function cm.initial_effect(c)
RD.AddContinuousEffect(c,e1) RD.AddContinuousEffect(c,e1)
end end
--Double Tribute --Double Tribute
cm.trival=RD.ValueDoubleTributeAttrType(ATTRIBUTE_DARK,TYPE_NORMAL) cm.trival=RD.ValueDoubleTributeAttrType(ATTRIBUTE_DARK,TYPE_NORMAL,true)
\ No newline at end of file \ No newline at end of file
local m=120261021 local m=120261021
local list={120261028} local list={CODE_DARK_MATTER_MIST}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质自动偶·锁定人偶" cm.name="暗物质自动偶·锁定人偶"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120261023 local m=120261023
local list={120261028,120196050} local list={CODE_DARK_MATTER_MIST,120196050}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质自动偶·摇篮人偶" cm.name="暗物质自动偶·摇篮人偶"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120261026 local m=120261026
local list={120261028,120261023,120261021} local list={CODE_DARK_MATTER_MIST,120261023,120261021}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质自动偶·危害人偶" cm.name="暗物质自动偶·危害人偶"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120261028
local cm=_G["c"..m]
cm.name="岩石魔神 瓦砾王"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Atk Up
function cm.confilter(c)
return c:IsFaceup() and c:IsType(TYPE_NORMAL) and c:IsRace(RACE_ROCK)
end
function cm.exfilter(c)
return c:IsFaceup() and c:IsLevel(5,6,7)
end
function cm.desfilter(c)
return c:IsFaceup() and c:IsLevelBelow(7)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(cm.confilter,tp,LOCATION_MZONE,0,nil)==2
end
cm.cost=RD.CostSendDeckTopToGrave(1)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
RD.AttachAtkDef(e,c,1400,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
local g1=Duel.GetMatchingGroup(cm.exfilter,tp,LOCATION_MZONE,0,nil)
local g2=Duel.GetMatchingGroup(cm.desfilter,tp,0,LOCATION_MZONE,nil)
if g1:GetClassCount(Card.GetLevel)==3 and g2:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.Destroy(g2,REASON_EFFECT)
end
end
end
\ No newline at end of file
...@@ -39,6 +39,6 @@ end ...@@ -39,6 +39,6 @@ end
function cm.regop(e,tp,eg,ep,ev,re,r,rp) function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
if ph==PHASE_MAIN1 or ph==PHASE_MAIN2 then if ph==PHASE_MAIN1 or ph==PHASE_MAIN2 then
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(rp,m,RESET_PHASE+PHASE_END,0,1)
end end
end end
\ No newline at end of file
local m=120261038
local cm=_G["c"..m]
cm.name="数据吃货"
function cm.initial_effect(c)
--To Deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_TODECK+CATEGORY_GRAVE_ACTION+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--To Deck
function cm.costfilter(c)
return c:IsType(TYPE_MONSTER)
end
function cm.costcheck(g,e,tp)
return g:FilterCount(Card.IsAttribute,1,nil,ATTRIBUTE_EARTH)==1
end
function cm.tdfilter(c)
return c:IsAbleToDeck()
end
cm.cost=RD.CostShowGroupHand(cm.costfilter,cm.costcheck,2,2)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tdfilter,tp,0,LOCATION_GRAVE,2,nil) end
local g=Duel.GetMatchingGroup(cm.tdfilter,tp,0,LOCATION_GRAVE,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,2,0,0)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.tdfilter),tp,0,LOCATION_GRAVE,2,2,nil,function(g)
if RD.SendToDeckAndExists(g) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil,function(sg)
Duel.BreakEffect()
RD.AttachAtkDef(e,sg:GetFirst(),500,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
end
end)
end
\ No newline at end of file
local m=120261039
local cm=_G["c"..m]
cm.name="解压除冻骑兵改"
function cm.initial_effect(c)
--Damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DAMAGE+CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Damage
function cm.exfilter(c)
return (c:IsLevel(3) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_CYBERSE)) or c:IsType(TYPE_EQUIP)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSummonTurn(e:GetHandler())
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
RD.TargetDamage(1-tp,200)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if RD.Damage()~=0 and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_GRAVE,0,1,nil) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil,function(g)
RD.AttachAtkDef(e,g:GetFirst(),-600,-600,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
end
end
\ No newline at end of file
local m=120261040
local cm=_G["c"..m]
cm.name="加恶十字"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Atk Up
function cm.filter(c)
return c:IsFaceup() and not RD.IsMaximumMode(c) and c:GetBaseAttack()==0 and c:GetBaseDefense()==0
and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_FIEND)
end
cm.cost=RD.CostChangeSelfPosition(POS_FACEUP_ATTACK,POS_FACEUP_DEFENSE)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,0,1,nil) end
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(aux.Stringid(m,1),cm.filter,tp,LOCATION_MZONE,0,1,1,nil,function(g)
local tc=g:GetFirst()
RD.AttachAtkDef(e,tc,1000,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
RD.AttachPierce(e,tc,aux.Stringid(m,2),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
end
\ No newline at end of file
local m=120261041
local cm=_G["c"..m]
cm.name="乘恶十字"
function cm.initial_effect(c)
--Double Tribute
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DOUBLE_TRIBUTE)
e1:SetValue(cm.trival)
c:RegisterEffect(e1)
--Continuous Effect
RD.AddContinuousEffect(c,e1)
end
--Double Tribute
cm.trival=RD.ValueDoubleTributeMix(true,nil,ATTRIBUTE_DARK,TYPE_EFFECT,nil,RACE_FIEND,0,0)
\ No newline at end of file
local m=120261048 local m=120261048
local list={120261028} local list={CODE_DARK_MATTER_MIST}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质自动偶·谜团人偶" cm.name="暗物质自动偶·谜团人偶"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120261049 local m=120261049
local list={120261025,120261028} local list={120261025,CODE_DARK_MATTER_MIST}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质自动偶·谜团夜骑士" cm.name="暗物质自动偶·谜团夜骑士"
function cm.initial_effect(c) function cm.initial_effect(c)
......
...@@ -15,6 +15,7 @@ function cm.matfilter(c) ...@@ -15,6 +15,7 @@ function cm.matfilter(c)
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp,mat,fc) function cm.operation(e,tp,eg,ep,ev,re,r,rp,mat,fc)
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_TODECK,aux.NecroValleyFilter(Card.IsAbleToDeck),tp,0,LOCATION_GRAVE,1,1,nil,function(g) RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_TODECK,aux.NecroValleyFilter(Card.IsAbleToDeck),tp,0,LOCATION_GRAVE,1,1,nil,function(g)
Duel.BreakEffect()
RD.SendToDeckTopOrBottom(g,tp,aux.Stringid(m,2),aux.Stringid(m,3)) RD.SendToDeckTopOrBottom(g,tp,aux.Stringid(m,2),aux.Stringid(m,3))
end) end)
end end
\ No newline at end of file
local m=120261060
local cm=_G["c"..m]
cm.name="香料忍布海大食谱"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_TODECK+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2)
end
--Activate
function cm.confilter(c,tp)
return c:GetSummonPlayer()==tp
end
function cm.costfilter(c)
return c:IsRace(RACE_CYBERSE) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.filter(c)
return c:IsFaceup() and c:IsLevelBelow(9) and RD.IsCanChangePosition(c) and c:IsCanTurnSet()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.confilter,1,nil,1-tp)
end
cm.cost=RD.CostSendGraveToDeck(cm.costfilter,2,2)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(cm.filter,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(HINTMSG_SET,cm.filter,tp,0,LOCATION_MZONE,1,1,nil,function(g)
if RD.ChangePosition(g,POS_FACEDOWN_DEFENSE)~=0 then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_TODECK,aux.NecroValleyFilter(Card.IsAbleToDeck),tp,0,LOCATION_GRAVE,1,1,nil,function(g)
Duel.BreakEffect()
RD.SendToDeckTopOrBottom(g,tp,aux.Stringid(m,2),aux.Stringid(m,3))
end)
end
end)
end
\ No newline at end of file
local m=120261062
local cm=_G["c"..m]
cm.name="暗物质自动偶暗杀"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2)
end
--Activate
function cm.confilter(c,tp)
return c:GetSummonPlayer()==tp
end
function cm.desfilter(c)
return (c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsLevelBelow(8)) or c:IsFacedown()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.confilter,1,nil,1-tp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(HINTMSG_FACEDOWN,Card.IsFacedown,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,function(g)
local tc=g:GetFirst()
Duel.ConfirmCards(tp,tc)
if tc:IsType(TYPE_MONSTER) and RD.IsDefense(tc,1300) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_DESTROY,cm.desfilter,tp,0,LOCATION_ONFIELD,1,1,nil,function(sg)
Duel.Destroy(sg,REASON_EFFECT)
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