Skip to content

Commit 87b5337

Browse files
committed
added new rush cards
1 parent 8fc7fbb commit 87b5337

File tree

7 files changed

+352
-0
lines changed

7 files changed

+352
-0
lines changed

rush/c160216033.lua

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
--カオスソードライダー
2+
--Chaoswordrider
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Increase 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:SetTarget(s.target)
15+
e1:SetOperation(s.operation)
16+
c:RegisterEffect(e1)
17+
end
18+
function s.cfilter(c)
19+
return c:IsMonster() and c:IsAttack(500) and c:IsDefense(1000) and c:IsLevel(4) and not c:IsPublic()
20+
end
21+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then
23+
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) and Duel.IsPlayerCanDiscardDeckAsCost(tp,1)
24+
end
25+
end
26+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
27+
if chk==0 then return true end
28+
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,e:GetHandler(),1,tp,1000)
29+
end
30+
function s.atkfilter(c)
31+
return c:IsFaceup() and c:IsLevel(8) and c:IsRace(RACE_WARRIOR) and c:IsType(TYPE_RITUAL) and c:IsNotMaximumModeSide()
32+
end
33+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
34+
local c=e:GetHandler()
35+
--Requirement
36+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
37+
local tc=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,1,nil)
38+
Duel.ConfirmCards(1-tp,tc)
39+
Duel.ShuffleHand(tp)
40+
if Duel.DiscardDeck(tp,1,REASON_COST)<1 then return end
41+
--Effect
42+
local e1=Effect.CreateEffect(c)
43+
e1:SetType(EFFECT_TYPE_SINGLE)
44+
e1:SetCode(EFFECT_UPDATE_ATTACK)
45+
e1:SetValue(1000)
46+
e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_END,2)
47+
c:RegisterEffect(e1)
48+
if Duel.IsExistingMatchingCard(s.atkfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
49+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATKDEF)
50+
local tc=Duel.SelectMatchingCard(tp,s.atkfilter,tp,LOCATION_MZONE,0,1,1,nil):GetFirst()
51+
Duel.HintSelection(tc)
52+
Duel.BreakEffect()
53+
--Increase ATK
54+
local e2=Effect.CreateEffect(c)
55+
e2:SetType(EFFECT_TYPE_SINGLE)
56+
e2:SetCode(EFFECT_UPDATE_ATTACK)
57+
e2:SetValue(1000)
58+
e2:SetReset(RESETS_STANDARD_PHASE_END)
59+
tc:RegisterEffect(e2)
60+
end
61+
end

rush/c160216034.lua

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
--カオス・マテリアル
2+
--Chaos Material
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Increase 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:SetTarget(s.target)
15+
e1:SetOperation(s.operation)
16+
c:RegisterEffect(e1)
17+
end
18+
function s.cfilter(c)
19+
return c:IsMonster() and c:IsAttack(500) and c:IsDefense(1000) and c:IsLevel(4) and not c:IsPublic()
20+
end
21+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then
23+
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) and Duel.IsPlayerCanDiscardDeckAsCost(tp,2)
24+
end
25+
end
26+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
27+
if chk==0 then return true end
28+
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,e:GetHandler(),1,tp,1000)
29+
end
30+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
31+
local c=e:GetHandler()
32+
--Requirement
33+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
34+
local tc=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,1,nil)
35+
Duel.ConfirmCards(1-tp,tc)
36+
Duel.ShuffleHand(tp)
37+
if Duel.DiscardDeck(tp,2,REASON_COST)<1 then return end
38+
--Effect
39+
local e1=Effect.CreateEffect(c)
40+
e1:SetType(EFFECT_TYPE_SINGLE)
41+
e1:SetCode(EFFECT_UPDATE_ATTACK)
42+
e1:SetValue(1000)
43+
e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_END,2)
44+
c:RegisterEffect(e1)
45+
if c:HasLevel() and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
46+
c:UpdateLevel(4,RESETS_STANDARD_PHASE_END,c)
47+
end
48+
end

rush/c160216035.lua

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
--混沌の祈祷師
2+
--Shaman of Chaos
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Increase 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:SetTarget(s.target)
15+
e1:SetOperation(s.operation)
16+
c:RegisterEffect(e1)
17+
end
18+
function s.cfilter(c)
19+
return c:IsLevel(4) and c:IsAttack(500) and c:IsDefense(1000) and c:IsAbleToDeckOrExtraAsCost()
20+
end
21+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,2,nil) end
23+
end
24+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return true end
26+
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,e:GetHandler(),1,tp,1000)
27+
end
28+
function s.atkfilter(c)
29+
return c:IsFaceup() and c:IsLevel(8) and c:IsRace(RACE_WARRIOR) and c:IsType(TYPE_RITUAL) and c:IsNotMaximumModeSide()
30+
end
31+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
32+
local c=e:GetHandler()
33+
--Requirement
34+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
35+
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,2,2,nil)
36+
Duel.HintSelection(g)
37+
if Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)==0 then return end
38+
--Effect
39+
local e1=Effect.CreateEffect(c)
40+
e1:SetType(EFFECT_TYPE_SINGLE)
41+
e1:SetCode(EFFECT_UPDATE_ATTACK)
42+
e1:SetValue(1000)
43+
e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_END,2)
44+
c:RegisterEffect(e1)
45+
local g2=Duel.GetMatchingGroup(Card.IsFacedown,tp,0,LOCATION_STZONE,nil)
46+
if #g2>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
47+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
48+
local sg=g2:Select(tp,1,1,nil)
49+
Duel.HintSelection(sg)
50+
if #sg>0 then
51+
Duel.BreakEffect()
52+
Duel.Destroy(sg,REASON_EFFECT)
53+
end
54+
end
55+
end

rush/c160216037.lua

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
--速撃の騎士
2+
--Quick Attack Knight
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Send to GY
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_TOHAND)
9+
e1:SetType(EFFECT_TYPE_IGNITION)
10+
e1:SetRange(LOCATION_MZONE)
11+
e1:SetCountLimit(1)
12+
e1:SetCost(s.cost)
13+
e1:SetTarget(s.target)
14+
e1:SetOperation(s.operation)
15+
c:RegisterEffect(e1)
16+
end
17+
s.listed_names={55761792,160216039}
18+
function s.cfilter(c)
19+
return c:IsMonster() and c:IsAttack(500) and c:IsDefense(1000) and c:IsLevel(4) and not c:IsPublic()
20+
end
21+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,nil) or Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end
23+
end
24+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
26+
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
27+
end
28+
function s.thfilter(c)
29+
return c:IsCode(55761792,160216039) and c:IsAbleToHand()
30+
end
31+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
32+
--Requirement
33+
local b1=Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,nil)
34+
local b2=Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil)
35+
local op=Duel.SelectEffect(tp,{b1,aux.Stringid(id,1)},{b2,aux.Stringid(id,2)})
36+
if op==1 then
37+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
38+
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,1,nil)
39+
if Duel.SendtoGrave(g,REASON_COST)<1 then return end
40+
elseif op==2 then
41+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
42+
local tc=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,1,nil)
43+
Duel.ConfirmCards(1-tp,tc)
44+
Duel.ShuffleHand(tp)
45+
end
46+
--Effect
47+
if Duel.DiscardDeck(tp,1,REASON_EFFECT)==0 then return end
48+
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
49+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
50+
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,1,nil)
51+
if #g>0 then
52+
Duel.BreakEffect()
53+
Duel.SendtoHand(g,nil,REASON_EFFECT)
54+
Duel.ConfirmCards(1-tp,g)
55+
end
56+
end
57+
end

rush/c160216039.lua

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
--超戦士の一撃
2+
--Super Soldier Strike
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Activate
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetCategory(CATEGORY_TODECK)
9+
e1:SetType(EFFECT_TYPE_ACTIVATE)
10+
e1:SetCode(EVENT_FREE_CHAIN)
11+
e1:SetCondition(s.condition)
12+
e1:SetTarget(s.target)
13+
e1:SetOperation(s.operation)
14+
c:RegisterEffect(e1)
15+
end
16+
s.listed_names={5405694}
17+
function s.cfilter(c)
18+
return c:IsFaceup() and c:IsCode(5405694)
19+
end
20+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
21+
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
22+
end
23+
function s.filter(c)
24+
return c:IsFaceup() and c:IsAbleToDeck() and not c:IsMaximumModeSide()
25+
end
26+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
27+
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_ONFIELD,1,nil) end
28+
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,0,0)
29+
end
30+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
31+
--Effect
32+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
33+
local g=Duel.SelectMatchingCard(tp,s.filter,tp,0,LOCATION_ONFIELD,1,1,nil)
34+
if #g>0 then
35+
Duel.HintSelection(g)
36+
g=g:AddMaximumCheck()
37+
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
38+
end
39+
end

rush/c160216040.lua

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
--カオスの祭具
2+
--Chaos Ceremonial Object
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
-- Add excavated monster to hand
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
10+
e1:SetType(EFFECT_TYPE_ACTIVATE)
11+
e1:SetCode(EVENT_FREE_CHAIN)
12+
e1:SetTarget(s.target)
13+
e1:SetOperation(s.operation)
14+
c:RegisterEffect(e1)
15+
end
16+
s.listed_names={55761792}
17+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
18+
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=3 end
19+
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
20+
end
21+
function s.filter(c)
22+
return c:IsCode(55761792) and c:IsAbleToHand()
23+
end
24+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
25+
--Effect
26+
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return end
27+
Duel.ConfirmDecktop(tp,3)
28+
local g=Duel.GetDecktopGroup(tp,3)
29+
Duel.DisableShuffleCheck()
30+
local thg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE,0,nil)
31+
thg:Merge(g)
32+
if thg:IsExists(s.filter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
33+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
34+
local tg=thg:FilterSelect(tp,s.filter,1,1,nil)
35+
if #tg>0 then
36+
Duel.SendtoHand(tg,nil,REASON_EFFECT)
37+
Duel.ConfirmCards(1-tp,tg)
38+
Duel.ShuffleHand(tp)
39+
g:RemoveCard(tg)
40+
end
41+
end
42+
local ct=#g
43+
if ct>0 then
44+
Duel.MoveToDeckBottom(ct,tp)
45+
Duel.SortDeckbottom(tp,tp,ct)
46+
end
47+
end

rush/c160216041.lua

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
--闇をかき消す剣
2+
--Dark-Piercing Sword
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Add 1 monster from the grave to the hand
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetType(EFFECT_TYPE_ACTIVATE)
9+
e1:SetCategory(CATEGORY_TOHAND)
10+
e1:SetCode(EVENT_FREE_CHAIN)
11+
e1:SetCondition(s.condition)
12+
e1:SetTarget(s.target)
13+
e1:SetOperation(s.activate)
14+
c:RegisterEffect(e1)
15+
end
16+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
17+
return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0
18+
end
19+
function s.thfilter(c)
20+
return c:IsLevel(4) and c:IsAttribute(ATTRIBUTE_LIGHT|ATTRIBUTE_DARK) and c:IsAttack(500) and c:IsDefense(1000) and c:IsAbleToHand()
21+
end
22+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
23+
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
24+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
25+
end
26+
function s.posfilter(c)
27+
return (c:IsAttackPos() or c:IsFacedown()) and c:IsCanChangePositionRush()
28+
end
29+
function s.activate(e,tp,eg,ep,ev,re,r,rp)
30+
--Effect
31+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
32+
local dg=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
33+
if #dg>0 then
34+
Duel.SendtoHand(dg,nil,REASON_EFFECT)
35+
Duel.ConfirmCards(1-tp,dg)
36+
local sg=Duel.GetMatchingGroup(s.posfilter,tp,0,LOCATION_MZONE,nil)
37+
if #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
38+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
39+
local sc=Group.Select(sg,tp,1,1,nil)
40+
if #sc==0 then return end
41+
Duel.HintSelection(sc)
42+
Duel.ChangePosition(sc,POS_FACEUP_DEFENSE)
43+
end
44+
end
45+
end

0 commit comments

Comments
 (0)