Skip to content

Commit 86aff2d

Browse files
committed
added new rush cards
1 parent 2a2c6be commit 86aff2d

11 files changed

Lines changed: 540 additions & 0 deletions

rush/c160026003.lua

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
--ロイヤルデモンズ・ピッチシフター
2+
--Royal Rebel's Pitch Shifter
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Draw
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_DRAW|CATEGORY_TOGRAVE)
10+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
11+
e1:SetType(EFFECT_TYPE_IGNITION)
12+
e1:SetRange(LOCATION_MZONE)
13+
e1:SetCountLimit(1)
14+
e1:SetCost(s.cost)
15+
e1:SetTarget(s.target)
16+
e1:SetOperation(s.operation)
17+
c:RegisterEffect(e1)
18+
end
19+
function s.costfilter(c)
20+
return c:IsMonster() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_FIEND) and c:IsAbleToGraveAsCost()
21+
end
22+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
23+
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end
24+
end
25+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
26+
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
27+
Duel.SetTargetPlayer(tp)
28+
Duel.SetTargetParam(1)
29+
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
30+
end
31+
function s.posfilter(c,tc,tp)
32+
return c:IsCanChangePositionRush() and (c==tc or c:IsControler(1-tp))
33+
end
34+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
35+
--Requirement
36+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
37+
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_HAND,0,1,1,nil)
38+
if Duel.SendtoGrave(g,REASON_COST)<1 then return end
39+
--Effect
40+
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
41+
local sg=Duel.GetMatchingGroup(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e:GetHandler(),tp)
42+
if Duel.Draw(p,d,REASON_EFFECT) and #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
43+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
44+
local sc=Group.Select(sg,tp,1,1,nil)
45+
if #sc==0 then return end
46+
Duel.HintSelection(sc)
47+
Duel.BreakEffect()
48+
Duel.ChangePosition(sc,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)
49+
end
50+
end

rush/c160026004.lua

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
--ロイヤルデモンズ・グレートミキサー
2+
--Royal Rebel's Great Mixer
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Add card to 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+
s.listed_names={160210048}
19+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
20+
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN)
21+
end
22+
function s.thfilter(c)
23+
return c:IsCode(160210048) and c:IsAbleToHand()
24+
end
25+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
26+
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
27+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
28+
end
29+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
30+
local c=e:GetHandler()
31+
--Effect
32+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
33+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
34+
if #g>0 then
35+
Duel.SendtoHand(g,nil,REASON_EFFECT)
36+
Duel.ConfirmCards(1-tp,g)
37+
c:UpdateLevel(1,RESETS_STANDARD_PHASE_END,c)
38+
end
39+
--Can only attack with Fiends
40+
local e1=Effect.CreateEffect(e:GetHandler())
41+
e1:SetType(EFFECT_TYPE_FIELD)
42+
e1:SetCode(EFFECT_CANNOT_ATTACK)
43+
e1:SetProperty(EFFECT_FLAG_OATH)
44+
e1:SetTargetRange(LOCATION_MZONE,0)
45+
e1:SetTarget(s.ftarget)
46+
e1:SetReset(RESET_PHASE|PHASE_END)
47+
Duel.RegisterEffect(e1,tp)
48+
end
49+
function s.ftarget(e,c)
50+
return not c:IsRace(RACE_FIEND)
51+
end

rush/c160026005.lua

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
--ロイヤルデモンズ・グレートミキサー
2+
--Royal Rebel's Falsetto
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Summon with 1 tribute
7+
local e1=aux.AddNormalSummonProcedure(c,true,true,1,1,SUMMON_TYPE_TRIBUTE,aux.Stringid(id,0),s.filter)
8+
--Special Summon 1 monster
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetDescription(aux.Stringid(id,0))
11+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
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.filter(c)
21+
return c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_LIGHT)
22+
end
23+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
24+
local c=e:GetHandler()
25+
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SUMMON_TURN+STATUS_SPSUMMON_TURN)
26+
end
27+
function s.spfilter(c,e,tp)
28+
return c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevelBelow(8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
29+
end
30+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
31+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
32+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_GRAVE)
33+
end
34+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
35+
--Effect
36+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then return end
37+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
38+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
39+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
40+
end

rush/c160026006.lua

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
--ロイヤルデモンズ・エクストリーム
2+
--Royal Rebel's Extreme
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Check if it tributed a level 5+ monster for its tribute summon
7+
local e0=Effect.CreateEffect(c)
8+
e0:SetType(EFFECT_TYPE_SINGLE)
9+
e0:SetCode(EFFECT_MATERIAL_CHECK)
10+
e0:SetValue(s.valcheck)
11+
c:RegisterEffect(e0)
12+
--Tribute
13+
local e1=Effect.CreateEffect(c)
14+
e1:SetType(EFFECT_TYPE_IGNITION)
15+
e1:SetRange(LOCATION_MZONE)
16+
e1:SetCountLimit(1)
17+
e1:SetLabelObject(e0)
18+
e1:SetCondition(s.condition)
19+
e1:SetCost(s.cost)
20+
e1:SetTarget(s.target)
21+
e1:SetOperation(s.operation)
22+
c:RegisterEffect(e1)
23+
end
24+
function s.valcheck(e,c)
25+
local g=c:GetMaterial()
26+
local flag=0
27+
if g:IsExists(Card.IsLevelAbove,1,nil,5) then flag=1 end
28+
e:SetLabel(flag)
29+
end
30+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
31+
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN) and e:GetLabelObject():GetLabel()~=0
32+
end
33+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
34+
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,1) end
35+
end
36+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
37+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsNotMaximumModeSide,tp,0,LOCATION_MZONE,1,nil) end
38+
end
39+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
40+
local c=e:GetHandler()
41+
--Requirement
42+
if Duel.DiscardDeck(tp,1,REASON_COST)<1 then return end
43+
--Effect
44+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
45+
local g=Duel.SelectMatchingCard(tp,Card.IsNotMaximumModeSide,tp,0,LOCATION_MZONE,1,1,nil)
46+
if #g==0 then return end
47+
Duel.HintSelection(g)
48+
g:GetFirst():AddTributeSubstitute(s.tribfilter,RESET_PHASE|PHASE_END,c)
49+
--Can only attack with Fiends
50+
local e1=Effect.CreateEffect(e:GetHandler())
51+
e1:SetType(EFFECT_TYPE_FIELD)
52+
e1:SetCode(EFFECT_CANNOT_ATTACK)
53+
e1:SetProperty(EFFECT_FLAG_OATH)
54+
e1:SetTargetRange(LOCATION_MZONE,0)
55+
e1:SetTarget(s.ftarget)
56+
e1:SetReset(RESET_PHASE|PHASE_END)
57+
Duel.RegisterEffect(e1,tp)
58+
end
59+
function s.tribfilter(c)
60+
return c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_LIGHT)
61+
end
62+
function s.ftarget(e,c)
63+
return not c:IsRace(RACE_FIEND)
64+
end

rush/c160026010.lua

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
--救惺の狂撃 スレイ
2+
--Slay the Star Protector's Gunslinger
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Change name and Fusion Summon
7+
local params = {s.fusfilter,Fusion.OnFieldMat(Card.IsAbleToDeck),s.fextra,s.fproc,Fusion.ForcedHandler}
8+
local e1=Effect.CreateEffect(c)
9+
e1:SetDescription(aux.Stringid(id,0))
10+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
11+
e1:SetType(EFFECT_TYPE_IGNITION)
12+
e1:SetRange(LOCATION_MZONE)
13+
e1:SetCountLimit(1)
14+
e1:SetTarget(s.target)
15+
e1:SetOperation(s.operation(Fusion.SummonEffTG(table.unpack(params)),Fusion.SummonEffOP(table.unpack(params))))
16+
c:RegisterEffect(e1)
17+
end
18+
function s.fusfilter(c)
19+
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsRace(RACE_MAGICALKNIGHT|RACE_WYRM)
20+
end
21+
function s.fextra(e,tp,mg)
22+
return Duel.GetMatchingGroup(Fusion.IsMonsterFilter(Card.IsAbleToDeck),tp,LOCATION_GRAVE,0,nil)
23+
end
24+
function s.fproc(e,tc,tp,sg)
25+
local gg=sg:Filter(Card.IsLocation,nil,LOCATION_HAND|LOCATION_GRAVE)
26+
if #gg>0 then Duel.HintSelection(gg,true) end
27+
local rg=sg:Filter(Card.IsFacedown,nil)
28+
if #rg>0 then Duel.ConfirmCards(1-tp,rg) end
29+
Duel.SendtoDeck(sg,nil,SEQ_DECKBOTTOM,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
30+
local dg=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_DECK)
31+
local ct=dg:FilterCount(Card.IsControler,nil,tp)
32+
if ct>0 then
33+
Duel.SortDeckbottom(tp,tp,ct)
34+
end
35+
if #dg>ct then
36+
Duel.SortDeckbottom(tp,1-tp,#dg-ct)
37+
end
38+
sg:Clear()
39+
end
40+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
41+
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
42+
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,1)
43+
end
44+
function s.operation(fustg,fusop)
45+
return function(e,tp,eg,ep,ev,re,r,rp)
46+
local c=e:GetHandler()
47+
--Effect
48+
Duel.DiscardDeck(tp,1,REASON_EFFECT)
49+
local g=Duel.GetOperatedGroup()
50+
local ct=g:GetFirst()
51+
if ct and ct:IsCode(CARD_FUSION) and fustg(e,tp,eg,ep,ev,re,r,rp,0) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
52+
Duel.BreakEffect()
53+
fusop(e,tp,eg,ep,ev,re,r,rp)
54+
end
55+
end
56+
end

rush/c160026011.lua

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
--救惺の轟拳 フィスト
2+
--Fist the Star Protector's Roaring Gauntlet
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Excavate and Fusion Summon
7+
local params = {s.fusfilter,nil,nil,nil,Fusion.ForcedHandler}
8+
local e1=Effect.CreateEffect(c)
9+
e1:SetDescription(aux.Stringid(id,0))
10+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
11+
e1:SetType(EFFECT_TYPE_IGNITION)
12+
e1:SetRange(LOCATION_MZONE)
13+
e1:SetCountLimit(1)
14+
e1:SetTarget(s.target)
15+
e1:SetOperation(s.operation(Fusion.SummonEffTG(table.unpack(params)),Fusion.SummonEffOP(table.unpack(params))))
16+
c:RegisterEffect(e1)
17+
end
18+
function s.fusfilter(c)
19+
return c:IsCode(160026037)
20+
end
21+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=4 end
23+
Duel.SetPossibleOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
24+
end
25+
function s.filter(c)
26+
return c:IsCode(160026047) and c:IsAbleToGrave()
27+
end
28+
function s.operation(fustg,fusop)
29+
return function(e,tp,eg,ep,ev,re,r,rp)
30+
local c=e:GetHandler()
31+
--Effect
32+
local canFusion=false
33+
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<4 then return end
34+
Duel.ConfirmDecktop(tp,4)
35+
local g=Duel.GetDecktopGroup(tp,4)
36+
Duel.DisableShuffleCheck()
37+
if g:IsExists(s.filter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
38+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
39+
local sg=g:FilterSelect(tp,s.filter,1,1,nil)
40+
if Duel.SendtoGrave(sg,REASON_EFFECT)>0 then canFusion=true end
41+
Duel.BreakEffect()
42+
g:RemoveCard(sg)
43+
end
44+
local ct=#g
45+
if ct>0 then
46+
Duel.MoveToDeckBottom(ct,tp)
47+
Duel.SortDeckbottom(tp,tp,ct)
48+
end
49+
if canFusion and fustg(e,tp,eg,ep,ev,re,r,rp,0) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
50+
Duel.BreakEffect()
51+
fusop(e,tp,eg,ep,ev,re,r,rp)
52+
end
53+
end
54+
end

rush/c160026036.lua

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
--深竜の契約者
2+
--Contractor of the Abyssal Dragon
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Fusion Procedure
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMixN(c,true,true,160204044,1,s.ffilter,1)
9+
--atk
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetType(EFFECT_TYPE_FIELD)
12+
e1:SetRange(LOCATION_MZONE)
13+
e1:SetTargetRange(LOCATION_MZONE,0)
14+
e1:SetCode(EFFECT_UPDATE_ATTACK)
15+
e1:SetTarget(s.target)
16+
e1:SetValue(400)
17+
c:RegisterEffect(e1)
18+
--Cannot Change Battle Position
19+
local e2=Effect.CreateEffect(c)
20+
e2:SetType(EFFECT_TYPE_FIELD)
21+
e2:SetCode(EFFECT_CANNOT_CHANGE_POS_E)
22+
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
23+
e2:SetRange(LOCATION_MZONE)
24+
e2:SetTargetRange(LOCATION_MZONE,0)
25+
e2:SetTarget(s.target)
26+
e2:SetValue(s.efilter)
27+
c:RegisterEffect(e2)
28+
end
29+
s.named_material={160204044}
30+
function s.ffilter(c,fc,sumtype,tp)
31+
return c:IsAttribute(ATTRIBUTE_WATER,scard,sumtype,tp) and c:IsType(TYPE_EFFECT) and c:IsLevelBelow(8)
32+
end
33+
function s.target(e,c)
34+
return c:IsAttackPos() and c:IsAttribute(ATTRIBUTE_WATER)
35+
end
36+
function s.efilter(e,te)
37+
return te:GetOwnerPlayer()==e:GetOwnerPlayer()
38+
end

0 commit comments

Comments
 (0)