Skip to content

Commit 2cefef7

Browse files
committed
added new rush cards
1 parent 5004b61 commit 2cefef7

4 files changed

Lines changed: 101 additions & 1 deletion

File tree

proc_rush.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
1010
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
1111
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
1212
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040,160020000,160214052,160323029,
13-
160214020,160021065,160021027,160402052}
13+
160214020,160021065,160021027,160402052,160215086}
1414
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
1515
function Card.IsLegend(c)
1616
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))

rush/c160215084.lua

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
--タイドライド・ブルーフィン
2+
--Tide-Ride Bluefin
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Ritual
7+
c:EnableReviveLimit()
8+
--Send the top 2 cards of your Deck to the GY
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetDescription(aux.Stringid(id,0))
11+
e1:SetCategory(CATEGORY_DECKDES+CATEGORY_DESTROY)
12+
e1:SetType(EFFECT_TYPE_IGNITION)
13+
e1:SetRange(LOCATION_MZONE)
14+
e1:SetCountLimit(1)
15+
e1:SetCondition(s.condition)
16+
e1:SetTarget(s.target)
17+
e1:SetOperation(s.operation)
18+
c:RegisterEffect(e1)
19+
end
20+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
21+
local c=e:GetHandler()
22+
return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_RITUAL)
23+
end
24+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,2) end
26+
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,2)
27+
end
28+
function s.cfilter(c)
29+
return c:IsLocation(LOCATION_GRAVE) and (c:IsRace(RACE_FISH) or c:IsType(TYPE_SPELL))
30+
end
31+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
32+
--Effect
33+
if Duel.DiscardDeck(tp,2,REASON_EFFECT)~=2 then return end
34+
local og=Duel.GetOperatedGroup()
35+
if og:IsExists(s.cfilter,1,nil) and Duel.IsExistingMatchingCard(Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
36+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
37+
local dg=Duel.SelectMatchingCard(tp,Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,1,1,nil)
38+
Duel.HintSelection(dg)
39+
Duel.BreakEffect()
40+
Duel.Destroy(dg,REASON_EFFECT)
41+
end
42+
end

rush/c160215085.lua

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
--ブルーフィン・オース
2+
--Bluefin Oath
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
local e1=Ritual.CreateProc({handler=c,lvtype=RITPROC_GREATER,filter=s.ritualfil,matfilter=s.forcedgroup})
7+
e1:SetCondition(s.condition)
8+
c:RegisterEffect(e1)
9+
--Register when a player Special Summons a monster
10+
aux.GlobalCheck(s,function()
11+
local ge1=Effect.CreateEffect(c)
12+
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
13+
ge1:SetCode(EVENT_SPSUMMON_SUCCESS)
14+
ge1:SetOperation(s.checkop)
15+
Duel.RegisterEffect(ge1,0)
16+
end)
17+
end
18+
s.listed_names={160215084}
19+
function s.checkop(e,tp,eg,ep,ev,re,r,rp)
20+
for tc in eg:Iter() do
21+
Duel.RegisterFlagEffect(tc:GetSummonPlayer(),id,RESET_PHASE|PHASE_END,0,1)
22+
end
23+
end
24+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
25+
return not Duel.HasFlagEffect(tp,id)
26+
end
27+
function s.ritualfil(c)
28+
return c:IsCode(160215084)
29+
end
30+
function s.forcedgroup(c,e,tp)
31+
return c:IsLocation(LOCATION_MZONE) and c:IsFaceup()
32+
end

rush/c160215086.lua

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
--団結の力
2+
--United We Stand
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--equip
7+
aux.AddEquipProcedure(c,0,s.eqfilter,s.eqlimit)
8+
--Atk Change
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetType(EFFECT_TYPE_EQUIP)
11+
e1:SetCode(EFFECT_UPDATE_ATTACK)
12+
e1:SetValue(s.value)
13+
c:RegisterEffect(e1)
14+
local e2=e1:Clone()
15+
e2:SetCode(EFFECT_UPDATE_DEFENSE)
16+
c:RegisterEffect(e2)
17+
end
18+
function s.eqfilter(c)
19+
return c:IsFaceup() and not c:IsMaximumModeSide()
20+
end
21+
function s.eqlimit(e,c)
22+
return c:IsFaceup()
23+
end
24+
function s.value(e,c)
25+
return Duel.GetMatchingGroupCount(Card.IsFaceup,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil)*800
26+
end

0 commit comments

Comments
 (0)