Skip to content

Commit 4d6e1bd

Browse files
committed
added new rush cards
1 parent 2c70675 commit 4d6e1bd

File tree

3 files changed

+87
-1
lines changed

3 files changed

+87
-1
lines changed

proc_rush.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
99
160429002,160208063,160208064,160208065,160014065,160446002,160015056,160210001,160207060,160210032,160210029,
1010
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
1111
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
12-
160213078,160213082,160402047,160213084,160020059,160213076,160020001}
12+
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040}
1313
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
1414
function Card.IsLegend(c)
1515
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))

rush/c160020040.lua

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
--魂を喰らう者 バズー
2+
--Bazoo the Soul-Eater
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
-- Increase self ATK
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_ATKCHANGE)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetCountLimit(1)
13+
e1:SetCost(s.cost)
14+
e1:SetOperation(s.operation)
15+
c:RegisterEffect(e1)
16+
end
17+
function s.cfilter(c)
18+
return c:IsMonster() and c:IsAbleToDeckOrExtraAsCost()
19+
end
20+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
21+
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
22+
end
23+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
24+
local c=e:GetHandler()
25+
--Requirement
26+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
27+
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,1,3,nil)
28+
Duel.HintSelection(g)
29+
Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
30+
local g2=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_DECK)
31+
if #g2>1 then
32+
Duel.SortDeckbottom(tp,tp,#g2)
33+
end
34+
--Effect
35+
--Gain ATK
36+
local e1=Effect.CreateEffect(c)
37+
e1:SetType(EFFECT_TYPE_SINGLE)
38+
e1:SetCode(EFFECT_UPDATE_ATTACK)
39+
e1:SetReset(RESETS_STANDARD_PHASE_END,2)
40+
e1:SetValue(#g*300)
41+
c:RegisterEffect(e1)
42+
end

rush/c160020050.lua

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--綺羅流聖のプリアージュ
2+
--Pliage the Stylish Sacred Shooting Star
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Fusion Summon procedure
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMix(c,true,true,160213069,aux.FilterBoolFunctionEx(Card.IsType,TYPE_NORMAL))
9+
-- Decrease ATK
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetType(EFFECT_TYPE_IGNITION)
12+
e1:SetRange(LOCATION_MZONE)
13+
e1:SetCategory(CATEGORY_ATKCHANGE)
14+
e1:SetCountLimit(1)
15+
e1:SetCost(s.cost)
16+
e1:SetTarget(s.target)
17+
e1:SetOperation(s.operation)
18+
c:RegisterEffect(e1)
19+
end
20+
s.named_material={160213069}
21+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,1) end
23+
end
24+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return Duel.IsExistingMatchingCard(aux.FilterMaximumSideFunctionEx(Card.IsFaceup),tp,0,LOCATION_MZONE,1,nil) end
26+
end
27+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
28+
local c=e:GetHandler()
29+
--Requirement
30+
if Duel.DiscardDeck(tp,1,REASON_COST)<1 then return end
31+
--Effect
32+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
33+
local g=Duel.SelectMatchingCard(tp,aux.FilterMaximumSideFunctionEx(Card.IsFaceup),tp,0,LOCATION_MZONE,1,1,nil)
34+
if #g>0 then
35+
Duel.HintSelection(g)
36+
-- Decrease ATK
37+
local e1=Effect.CreateEffect(c)
38+
e1:SetType(EFFECT_TYPE_SINGLE)
39+
e1:SetCode(EFFECT_UPDATE_ATTACK)
40+
e1:SetValue(-1700)
41+
e1:SetReset(RESETS_STANDARD_PHASE_END,2)
42+
g:GetFirst():RegisterEffect(e1)
43+
end
44+
end

0 commit comments

Comments
 (0)