Skip to content

Commit bb2b6b1

Browse files
authored
Rush scripts updates (#1075)
Categories, possible operation info, whitespaces, and other small fixes for Rush scripts added in the last two months
1 parent 9273616 commit bb2b6b1

56 files changed

Lines changed: 285 additions & 198 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎rush/c160013033.lua‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
2626
--Requirement
2727
if Duel.ChangePosition(c,POS_FACEUP_DEFENSE,0,POS_FACEUP_ATTACK,0)~=0 then
2828
--Effect
29-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
29+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATKDEF)
3030
local g=Duel.SelectMatchingCard(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil)
3131
if #g>0 then
3232
Duel.HintSelection(g,true)
@@ -36,9 +36,9 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
3636
e1:SetType(EFFECT_TYPE_SINGLE)
3737
e1:SetCode(EFFECT_UPDATE_ATTACK)
3838
e1:SetValue(1000)
39-
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
39+
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
4040
tc:RegisterEffect(e1)
41-
tc:AddPiercing(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,c)
41+
tc:AddPiercing(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END,c)
4242
end
4343
end
44-
end
44+
end

‎rush/c160014002.lua‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--scripted by YoshiDuels
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--Special Summon 1 Level 10 Maximum monster from the GY
6+
--Special Summon 1 listed monster from the GY
77
local e1=Effect.CreateEffect(c)
88
e1:SetDescription(aux.Stringid(id,0))
99
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
@@ -15,6 +15,7 @@ function s.initial_effect(c)
1515
e1:SetOperation(s.spop)
1616
c:RegisterEffect(e1)
1717
end
18+
s.listed_names={160009019,160014006,160014007} --Jointech Rex, Jointech Arc Scorpio, Jointech Spike Centipede
1819
function s.spcond(e,tp,eg,ep,ev,re,r,rp)
1920
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1
2021
end
@@ -34,16 +35,16 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
3435
if #g>0 then
3536
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
3637
local e1=Effect.CreateEffect(e:GetHandler())
37-
e1:SetType(EFFECT_TYPE_FIELD)
38-
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH+EFFECT_FLAG_CLIENT_HINT)
3938
e1:SetDescription(aux.Stringid(id,1))
39+
e1:SetType(EFFECT_TYPE_FIELD)
4040
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
41+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
4142
e1:SetTargetRange(1,0)
4243
e1:SetValue(s.aclimit)
43-
e1:SetReset(RESET_PHASE+PHASE_END)
44+
e1:SetReset(RESET_PHASE|PHASE_END)
4445
Duel.RegisterEffect(e1,tp)
4546
end
4647
end
4748
function s.aclimit(e,re,tp)
48-
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsRace(RACE_MACHINE)
49+
return re:IsMonsterEffect() and not re:GetHandler():IsRace(RACE_MACHINE)
4950
end

‎rush/c160014003.lua‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
local s,id=GetID()
55
function s.initial_effect(c)
66
local e1=Effect.CreateEffect(c)
7-
e1:SetCategory(CATEGORY_DESTROY)
87
e1:SetDescription(aux.Stringid(id,0))
8+
e1:SetCategory(CATEGORY_DESTROY)
99
e1:SetType(EFFECT_TYPE_IGNITION)
1010
e1:SetRange(LOCATION_MZONE)
1111
e1:SetCountLimit(1)
@@ -34,7 +34,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
3434
e1:SetType(EFFECT_TYPE_SINGLE)
3535
e1:SetCode(EFFECT_UPDATE_ATTACK)
3636
e1:SetValue(-600)
37-
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
37+
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
3838
c:RegisterEffectRush(e1)
3939
local res=Duel.TossCoin(tp,1)
4040
if res==COIN_HEADS then
@@ -44,7 +44,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4444
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
4545
e2:SetCode(EFFECT_EXTRA_ATTACK)
4646
e2:SetValue(2)
47-
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
47+
e2:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
4848
c:RegisterEffectRush(e2)
4949
elseif res==COIN_TAILS then
5050
--Can make up to 2 attacks on monsters
@@ -55,10 +55,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
5555
e3:SetRange(LOCATION_MZONE)
5656
e3:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
5757
e3:SetValue(1)
58-
e3:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END)
58+
e3:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_END)
5959
c:RegisterEffectRush(e3)
6060
--Piercing
61-
c:AddPiercing(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
61+
c:AddPiercing(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
6262
end
6363
end
6464
end

‎rush/c160014004.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ function s.cfilter(c)
4242
end
4343
function s.indcon2(e)
4444
return e:GetHandler():IsMaximumMode() and Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,1,nil)
45-
end
45+
end

‎rush/c160014005.lua‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function s.initial_effect(c)
66
--Shuffle 3 monsters from the GYs to deck
77
local e1=Effect.CreateEffect(c)
88
e1:SetDescription(aux.Stringid(id,0))
9-
e1:SetCategory(CATEGORY_TODECK)
9+
e1:SetCategory(CATEGORY_TODECK+CATEGORY_ATKCHANGE)
1010
e1:SetType(EFFECT_TYPE_IGNITION)
1111
e1:SetRange(LOCATION_MZONE)
1212
e1:SetCountLimit(1)
@@ -22,18 +22,19 @@ end
2222
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2323
if chk==0 then return Duel.IsExistingMatchingCard(s.tdfilter,tp,LOCATION_GRAVE,0,3,nil)
2424
and Duel.IsExistingMatchingCard(s.tdfilter,tp,0,LOCATION_GRAVE,3,nil) end
25-
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,3,tp,LOCATION_GRAVE)
26-
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,3,1-tp,LOCATION_GRAVE)
25+
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,3,PLAYER_ALL,LOCATION_GRAVE)
26+
Duel.SetPossibleOperationInfo(0,CATEGORY_ATKCHANGE,e:GetHandler(),1,tp,100)
2727
end
2828
function s.ogfilter(c)
2929
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH) and c:GetOriginalLevel()>0
3030
end
3131
function s.operation(e,tp,eg,ep,ev,re,r,rp)
3232
local c=e:GetHandler()
3333
--Requirement
34-
local dg1=Duel.SelectMatchingCard(tp,s.tdfilter,tp,0,LOCATION_GRAVE,3,3,nil)
34+
local dg1=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.tdfilter),tp,0,LOCATION_GRAVE,3,3,nil)
3535
if #dg1==0 then return end
36-
local dg2=Duel.SelectMatchingCard(1-tp,s.tdfilter,tp,LOCATION_GRAVE,0,3,3,nil)
36+
local dg2=Duel.SelectMatchingCard(1-tp,aux.NecroValleyFilter(s.tdfilter),tp,LOCATION_GRAVE,0,3,3,nil)
37+
if #dg2==0 then return end
3738
dg1:Merge(dg2)
3839
Duel.HintSelection(dg1,true)
3940
Duel.SendtoDeck(dg1,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
@@ -44,7 +45,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4445
e1:SetType(EFFECT_TYPE_SINGLE)
4546
e1:SetCode(EFFECT_UPDATE_ATTACK)
4647
e1:SetValue(ct*100)
47-
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
48+
e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END)
4849
c:RegisterEffectRush(e1)
4950
end
5051
end

‎rush/c160014006.lua‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function s.initial_effect(c)
1515
e1:SetOperation(s.operation)
1616
c:RegisterEffect(e1)
1717
end
18-
s.listed_names={CARD_FUSION,37630732,160014007}
18+
s.listed_names={CARD_FUSION,37630732,160014007} --Power Bond, Jointech Spike Centipede
1919
function s.tgfilter(c)
2020
return c:IsMonster() and c:IsRace(RACE_MACHINE) and c:IsAbleToGraveAsCost() and (c:IsLocation(LOCATION_HAND) or c:IsFaceup())
2121
end
@@ -28,6 +28,7 @@ end
2828
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2929
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
3030
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
31+
Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
3132
end
3233
function s.spfilter(c,e,tp)
3334
return c:IsCode(160014007) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
@@ -53,4 +54,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
5354
end
5455
end
5556
end
56-
end
57+
end

‎rush/c160014007.lua‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ end
2424
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2525
local dg=Duel.GetMatchingGroup(Card.IsNotMaximumModeSide,tp,0,LOCATION_MZONE,nil)
2626
if chk==0 then return #dg>0 end
27+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,dg,1,tp,0)
2728
end
2829
function s.operation(e,tp,eg,ep,ev,re,r,rp)
2930
--Requirement
@@ -34,21 +35,22 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
3435
--Effect
3536
local dg=Duel.GetMatchingGroup(Card.IsNotMaximumModeSide,tp,0,LOCATION_MZONE,nil)
3637
if #dg>0 then
38+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
3739
local sg=dg:Select(tp,1,1,nil)
3840
sg=sg:AddMaximumCheck()
3941
Duel.HintSelection(sg,true)
4042
Duel.Destroy(sg,REASON_EFFECT)
4143
local e1=Effect.CreateEffect(e:GetHandler())
42-
e1:SetType(EFFECT_TYPE_FIELD)
43-
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH+EFFECT_FLAG_CLIENT_HINT)
4444
e1:SetDescription(aux.Stringid(id,1))
45+
e1:SetType(EFFECT_TYPE_FIELD)
4546
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
47+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
4648
e1:SetTargetRange(1,0)
4749
e1:SetValue(s.aclimit)
48-
e1:SetReset(RESET_PHASE+PHASE_END)
50+
e1:SetReset(RESET_PHASE|PHASE_END)
4951
Duel.RegisterEffect(e1,tp)
5052
end
5153
end
5254
function s.aclimit(e,re,tp)
53-
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsRace(RACE_MACHINE)
55+
return re:IsMonsterEffect() and not re:GetHandler():IsRace(RACE_MACHINE)
5456
end

‎rush/c160014008.lua‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--scripted by YoshiDuels
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--mat check
6+
--Material check
77
local e0=Effect.CreateEffect(c)
88
e0:SetType(EFFECT_TYPE_SINGLE)
99
e0:SetCode(EFFECT_MATERIAL_CHECK)
@@ -19,9 +19,11 @@ function s.initial_effect(c)
1919
e1:SetLabelObject(e0)
2020
e1:SetCondition(s.condition)
2121
e1:SetCost(s.cost)
22+
e1:SetTarget(s.target)
2223
e1:SetOperation(s.operation)
2324
c:RegisterEffect(e1)
2425
end
26+
s.listed_names={160312010} --Jointech Ace
2527
function s.valcheck(e,c)
2628
local g=c:GetMaterial()
2729
local flag=0
@@ -34,6 +36,11 @@ end
3436
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
3537
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,1) end
3638
end
39+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
40+
if chk==0 then return true end
41+
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,e:GetHandler(),1,tp,1500)
42+
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
43+
end
3744
function s.thfilter(c)
3845
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsAbleToHand()
3946
end
@@ -46,7 +53,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4653
e1:SetType(EFFECT_TYPE_SINGLE)
4754
e1:SetCode(EFFECT_UPDATE_ATTACK)
4855
e1:SetValue(1500)
49-
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
56+
e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_END)
5057
c:RegisterEffect(e1)
5158
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
5259
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
@@ -57,4 +64,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
5764
Duel.ConfirmCards(1-tp,g)
5865
end
5966
end
60-
end
67+
end

‎rush/c160014018.lua‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ end
2424
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2525
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) end
2626
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,3)
27+
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
2728
end
2829
function s.cfilter(c)
2930
return c:IsLocation(LOCATION_GRAVE) and c:IsRace(RACE_REPTILE)
@@ -37,13 +38,14 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
3738
--Effect
3839
Duel.DiscardDeck(tp,3,REASON_EFFECT)
3940
if Duel.GetOperatedGroup():FilterCount(s.cfilter,nil)>0
40-
and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil)
41+
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,nil)
4142
and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
4243
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
4344
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
4445
if #g>0 then
46+
Duel.BreakEffect()
4547
Duel.SendtoHand(g,nil,REASON_EFFECT)
4648
Duel.ConfirmCards(1-tp,g)
4749
end
4850
end
49-
end
51+
end

‎rush/c160014019.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
4747
Duel.MoveToDeckTop(g,tp)
4848
Duel.SortDecktop(tp,tp,ct)
4949
end
50-
end
50+
end

0 commit comments

Comments
 (0)