Skip to content

Commit 156ad01

Browse files
authored
Rush updates (#1178)
1 parent fff476a commit 156ad01

Some content is hidden

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

57 files changed

+1551
-1
lines changed

proc_rush.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
99
160429002,160208063,160208064,160208065,160014065,160446002,160015056,160210001,160207060,160210032,160210029,
1010
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
1111
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
12-
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040,160020000,160214052}
12+
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040,160020000,160214052,160323029,
13+
160214020}
1314
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
1415
function Card.IsLegend(c)
1516
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))

rush/c160021012.lua

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
--花牙疾走のクノイチ・エトランゼ
2+
--Etraynze the Sprinting Shadow Flower Ninja
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Name becomes "Etraynze the Shadow Flower Ninja" in the Graveyard
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetType(EFFECT_TYPE_SINGLE)
9+
e1:SetCode(EFFECT_CHANGE_CODE)
10+
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
11+
e1:SetRange(LOCATION_GRAVE)
12+
e1:SetValue(160005029)
13+
c:RegisterEffect(e1)
14+
--This card's name becomes "Etraynze the Shadow Flower Ninja", then you can add up to 2 EARTH Attribute Plant Type Normal Monsters from your Graveyard to your hand
15+
local e2=Effect.CreateEffect(c)
16+
e2:SetDescription(aux.Stringid(id,0))
17+
e2:SetCategory(CATEGORY_TOHAND)
18+
e2:SetType(EFFECT_TYPE_IGNITION)
19+
e2:SetRange(LOCATION_MZONE)
20+
e2:SetCountLimit(1)
21+
e2:SetCost(s.cost)
22+
e2:SetTarget(s.target)
23+
e2:SetOperation(s.operation)
24+
c:RegisterEffect(e2)
25+
end
26+
s.listed_names={160005029} --Etraynze the Shadow Flower Ninja
27+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
28+
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,3) end
29+
end
30+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
31+
local c=e:GetHandler()
32+
if chk==0 then return not c:IsCode(160005029) end
33+
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
34+
end
35+
function s.thfilter(c)
36+
return c:IsRace(RACE_PLANT) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsType(TYPE_NORMAL) and c:IsAbleToHand()
37+
end
38+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
39+
-- Requirement
40+
if Duel.DiscardDeck(tp,3,REASON_COST)<1 then return end
41+
--Effect
42+
local c=e:GetHandler()
43+
--Name becomes "Etraynze the Shadow Flower Ninja"
44+
local e1=Effect.CreateEffect(c)
45+
e1:SetType(EFFECT_TYPE_SINGLE)
46+
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
47+
e1:SetCode(EFFECT_CHANGE_CODE)
48+
e1:SetValue(160005029)
49+
e1:SetReset(RESETS_STANDARD_PHASE_END)
50+
c:RegisterEffect(e1)
51+
if c:IsStatus(STATUS_SUMMON_TURN|STATUS_SPSUMMON_TURN) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
52+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,2,nil)
53+
if #g>0 then
54+
Duel.SendtoHand(g,nil,REASON_EFFECT)
55+
Duel.ConfirmCards(1-tp,g)
56+
end
57+
end
58+
end

rush/c160021013.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
--花牙クノイチ・リンカーネイション
2+
--Rincarnation the Shadow Flower Ninja
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Gains ATK
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetType(EFFECT_TYPE_SINGLE)
9+
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
10+
e1:SetCode(EFFECT_UPDATE_ATTACK)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetCondition(s.condition)
13+
e1:SetValue(s.val)
14+
c:RegisterEffect(e1)
15+
end
16+
function s.condition(e)
17+
local tp=e:GetHandlerPlayer()
18+
return Duel.IsTurnPlayer(1-tp) and not Duel.IsExistingMatchingCard(Card.IsSpellTrap,tp,LOCATION_ONFIELD,0,1,nil)
19+
end
20+
function s.atkfilter(c)
21+
return c:IsFaceup() and c:GetBaseAttack()>0
22+
end
23+
function s.val(e,c)
24+
local g=Duel.GetMatchingGroup(s.atkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil)
25+
local atk=g:GetMaxGroup(Card.GetBaseAttack):GetFirst():GetBaseAttack()
26+
return atk
27+
end

rush/c160021040.lua

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--花牙華艶メイカ・エトランゼ
2+
--Meika Etraynze the Shadow Flower Fiery Flower Beauty
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--fusion proc
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMix(c,true,true,160005029,160021001)
9+
--Gain Atk and Effect Protection
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetType(EFFECT_TYPE_FIELD)
12+
e1:SetCode(EFFECT_UPDATE_ATTACK)
13+
e1:SetRange(LOCATION_MZONE)
14+
e1:SetTargetRange(LOCATION_MZONE,0)
15+
e1:SetValue(500)
16+
c:RegisterEffect(e1)
17+
local e2=Effect.CreateEffect(c)
18+
e2:SetType(EFFECT_TYPE_FIELD)
19+
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
20+
e2:SetTargetRange(LOCATION_MZONE,0)
21+
e2:SetRange(LOCATION_MZONE)
22+
e2:SetValue(aux.indoval)
23+
c:RegisterEffect(e2)
24+
end

rush/c160021054.lua

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
--真花牙分身
2+
--True Shadow Flower Duplication
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
-- Special Summon up to 2 Level 7 EARTH Plant Type
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY)
10+
e1:SetType(EFFECT_TYPE_ACTIVATE)
11+
e1:SetCode(EVENT_FREE_CHAIN)
12+
e1:SetCondition(s.condition)
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:IsRace(RACE_PLANT) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsLevel(7) and c:IsFaceup()
20+
end
21+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
22+
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
23+
end
24+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_HAND,0,2,e:GetHandler()) end
26+
end
27+
function s.spfilter(c,e,tp)
28+
return c:IsRace(RACE_PLANT) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsLevel(7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_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
32+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
33+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
34+
end
35+
function s.operation(e,tp,eg,ep,ev,re,r,rp,chk)
36+
-- Requirement
37+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
38+
local td=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_HAND,0,2,2,nil)
39+
if #td==0 or Duel.SendtoDeck(td,nil,SEQ_DECKBOTTOM,REASON_COST)==0 then return end
40+
Duel.SortDeckbottom(tp,tp,#td)
41+
--Effect
42+
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
43+
if ft<1 then return end
44+
if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then ft=1 end
45+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
46+
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_GRAVE,0,1,math.min(ft,2),nil,e,tp)
47+
if #g>0 then
48+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
49+
end
50+
end

rush/c160214003.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--清浄の蛇姫
2+
--Snake Princess of Purity
3+
Duel.LoadCardScriptAlias(160014042)

rush/c160214004.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--純真のファドロニール
2+
--Fadronir the Pure
3+
Duel.LoadCardScriptAlias(160017037)

rush/c160214005.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--セブンス・ワンダー・フュージョン
2+
--Sevens Wonder Fusion
3+
Duel.LoadCardScriptAlias(160013054)

rush/c160214006.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--アビスカイト・パーティ
2+
--Abysskite Party
3+
Duel.LoadCardScriptAlias(160210053)

rush/c160214007.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--オーバーラッシュ・ストーム
2+
--Over Rush Storm
3+
Duel.LoadCardScriptAlias(160211077)

0 commit comments

Comments
 (0)