Skip to content

Commit 1d69120

Browse files
committed
added new rush cards
1 parent 6648f70 commit 1d69120

File tree

3 files changed

+131
-1
lines changed

3 files changed

+131
-1
lines changed

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,160215086,160324001,160402055,160324022}
13+
160214020,160021065,160021027,160402052,160215086,160324001,160402055,160324022,160023000}
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/c160023000.lua

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
--レッドアイズ・ダークネスメタルドラゴン
2+
--Red-Eyes Darkness Metal Dragon
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Special Summon procedure
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetType(EFFECT_TYPE_FIELD)
10+
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
11+
e1:SetCode(EFFECT_SPSUMMON_PROC)
12+
e1:SetRange(LOCATION_HAND)
13+
e1:SetCondition(s.spcon)
14+
e1:SetTarget(s.sptg)
15+
e1:SetOperation(s.spop)
16+
c:RegisterEffect(e1)
17+
--Special Summon 1 Dragon from the hand or GY
18+
local e1=Effect.CreateEffect(c)
19+
e1:SetDescription(aux.Stringid(id,0))
20+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
21+
e1:SetType(EFFECT_TYPE_IGNITION)
22+
e1:SetRange(LOCATION_MZONE)
23+
e1:SetCountLimit(1)
24+
e1:SetTarget(s.target)
25+
e1:SetOperation(s.operation)
26+
c:RegisterEffect(e1)
27+
end
28+
function s.spcostfilter(c)
29+
return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsAbleToDeckAsCost()
30+
end
31+
function s.spcon(e,c)
32+
if c==nil then return true end
33+
local tp=c:GetControler()
34+
return Duel.IsExistingMatchingCard(s.spcostfilter,tp,LOCATION_MZONE,0,1,nil)
35+
end
36+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,c)
37+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
38+
local g=Duel.GetMatchingGroup(s.spcostfilter,tp,LOCATION_MZONE,0,nil)
39+
local sg=aux.SelectUnselectGroup(g,e,tp,1,1,aux.ChkfMMZ(1),1,tp,HINTMSG_TODECK,nil,nil,true)
40+
if #sg>0 then
41+
sg:KeepAlive()
42+
e:SetLabelObject(sg)
43+
return true
44+
end
45+
return false
46+
end
47+
function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
48+
local g=e:GetLabelObject()
49+
if not g then return end
50+
Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_COST)
51+
g:DeleteGroup()
52+
end
53+
function s.spfilter(c,e,tp)
54+
return c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
55+
end
56+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
57+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
58+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE|LOCATION_HAND,0,1,nil,e,tp)
59+
end
60+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_GRAVE|LOCATION_HAND)
61+
end
62+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
63+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then return end
64+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
65+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE|LOCATION_HAND,0,1,1,nil,e,tp)
66+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
67+
local e1=Effect.CreateEffect(e:GetHandler())
68+
e1:SetDescription(aux.Stringid(id,1))
69+
e1:SetType(EFFECT_TYPE_FIELD)
70+
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
71+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
72+
e1:SetTargetRange(1,0)
73+
e1:SetValue(s.aclimit)
74+
e1:SetReset(RESET_PHASE|PHASE_END)
75+
Duel.RegisterEffect(e1,tp)
76+
end
77+
function s.aclimit(e,re,tp)
78+
return re:GetHandler():IsCode(88264978)
79+
end

rush/c160023036.lua

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
--炎霊エメテール
2+
--Emetaire the Flame Spirit
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Add 1 level 4 Pyro monster to the hand
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_TOHAND)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetCountLimit(1)
13+
e1:SetCondition(s.condition)
14+
e1:SetTarget(s.target)
15+
e1:SetOperation(s.operation)
16+
c:RegisterEffect(e1)
17+
end
18+
function s.cfilter(c)
19+
return c:IsFaceup() and c:GetAttack()~=c:GetBaseAttack() and not c:IsMaximumModeSide()
20+
end
21+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
22+
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
23+
end
24+
function s.filter(c)
25+
return c:IsMonster() and c:IsLevelBetween(5,8) and c:IsAbleToHand()
26+
end
27+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
28+
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil) end
29+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
30+
end
31+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
32+
--Effect
33+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
34+
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE,0,1,1,nil)
35+
if #g>0 then
36+
Duel.SendtoHand(g,nil,REASON_EFFECT)
37+
Duel.ConfirmCards(1-tp,g)
38+
end
39+
local e1=Effect.CreateEffect(e:GetHandler())
40+
e1:SetDescription(aux.Stringid(id,1))
41+
e1:SetType(EFFECT_TYPE_FIELD)
42+
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
43+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
44+
e1:SetTargetRange(1,0)
45+
e1:SetValue(s.aclimit)
46+
e1:SetReset(RESET_PHASE|PHASE_END)
47+
Duel.RegisterEffect(e1,tp)
48+
end
49+
function s.aclimit(e,re,tp)
50+
return re:GetHandler():IsCode(id)
51+
end

0 commit comments

Comments
 (0)