Skip to content

Rush updates #1178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 18, 2025
Merged
3 changes: 2 additions & 1 deletion proc_rush.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
160429002,160208063,160208064,160208065,160014065,160446002,160015056,160210001,160207060,160210032,160210029,
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040,160020000,160214052}
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040,160020000,160214052,160323029,
160214020}
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
function Card.IsLegend(c)
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))
Expand Down
58 changes: 58 additions & 0 deletions rush/c160021012.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
--花牙疾走のクノイチ・エトランゼ
--Etraynze the Sprinting Shadow Flower Ninja
--scripted by YoshiDuels
local s,id=GetID()
function s.initial_effect(c)
--Name becomes "Etraynze the Shadow Flower Ninja" in the Graveyard
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_GRAVE)
e1:SetValue(160005029)
c:RegisterEffect(e1)
--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
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,0))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(s.cost)
e2:SetTarget(s.target)
e2:SetOperation(s.operation)
c:RegisterEffect(e2)
end
s.listed_names={160005029} --Etraynze the Shadow Flower Ninja
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,3) end
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsCode(160005029) end
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end
function s.thfilter(c)
return c:IsRace(RACE_PLANT) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsType(TYPE_NORMAL) and c:IsAbleToHand()
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
-- Requirement
if Duel.DiscardDeck(tp,3,REASON_COST)<1 then return end
--Effect
local c=e:GetHandler()
--Name becomes "Etraynze the Shadow Flower Ninja"
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(160005029)
e1:SetReset(RESETS_STANDARD_PHASE_END)
c:RegisterEffect(e1)
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
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,2,nil)
if #g>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
end
27 changes: 27 additions & 0 deletions rush/c160021013.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--花牙クノイチ・リンカーネイション
--Rincarnation the Shadow Flower Ninja
--scripted by YoshiDuels
local s,id=GetID()
function s.initial_effect(c)
--Gains ATK
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(s.condition)
e1:SetValue(s.val)
c:RegisterEffect(e1)
end
function s.condition(e)
local tp=e:GetHandlerPlayer()
return Duel.IsTurnPlayer(1-tp) and not Duel.IsExistingMatchingCard(Card.IsSpellTrap,tp,LOCATION_ONFIELD,0,1,nil)
end
function s.atkfilter(c)
return c:IsFaceup() and c:GetBaseAttack()>0
end
function s.val(e,c)
local g=Duel.GetMatchingGroup(s.atkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil)
local atk=g:GetMaxGroup(Card.GetBaseAttack):GetFirst():GetBaseAttack()
return atk
end
24 changes: 24 additions & 0 deletions rush/c160021040.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--花牙華艶メイカ・エトランゼ
--Meika Etraynze the Shadow Flower Fiery Flower Beauty
--scripted by YoshiDuels
local s,id=GetID()
function s.initial_effect(c)
--fusion proc
c:EnableReviveLimit()
Fusion.AddProcMix(c,true,true,160005029,160021001)
--Gain Atk and Effect Protection
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetValue(500)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetRange(LOCATION_MZONE)
e2:SetValue(aux.indoval)
c:RegisterEffect(e2)
end
50 changes: 50 additions & 0 deletions rush/c160021054.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
--真花牙分身
--True Shadow Flower Duplication
--scripted by YoshiDuels
local s,id=GetID()
function s.initial_effect(c)
-- Special Summon up to 2 Level 7 EARTH Plant Type
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(s.condition)
e1:SetCost(s.cost)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
function s.cfilter(c)
return c:IsRace(RACE_PLANT) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsLevel(7) and c:IsFaceup()
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_HAND,0,2,e:GetHandler()) end
end
function s.spfilter(c,e,tp)
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)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
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
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp,chk)
-- Requirement
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local td=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_HAND,0,2,2,nil)
if #td==0 or Duel.SendtoDeck(td,nil,SEQ_DECKBOTTOM,REASON_COST)==0 then return end
Duel.SortDeckbottom(tp,tp,#td)
--Effect
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<1 then return end
if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then ft=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_GRAVE,0,1,math.min(ft,2),nil,e,tp)
if #g>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
3 changes: 3 additions & 0 deletions rush/c160214003.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--清浄の蛇姫
--Snake Princess of Purity
Duel.LoadCardScriptAlias(160014042)
3 changes: 3 additions & 0 deletions rush/c160214004.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--純真のファドロニール
--Fadronir the Pure
Duel.LoadCardScriptAlias(160017037)
3 changes: 3 additions & 0 deletions rush/c160214005.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--セブンス・ワンダー・フュージョン
--Sevens Wonder Fusion
Duel.LoadCardScriptAlias(160013054)
3 changes: 3 additions & 0 deletions rush/c160214006.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--アビスカイト・パーティ
--Abysskite Party
Duel.LoadCardScriptAlias(160210053)
3 changes: 3 additions & 0 deletions rush/c160214007.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--オーバーラッシュ・ストーム
--Over Rush Storm
Duel.LoadCardScriptAlias(160211077)
3 changes: 3 additions & 0 deletions rush/c160214008.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--顕現の秘儀
--The Secret of Manifestation
Duel.LoadCardScriptAlias(160016051)
3 changes: 3 additions & 0 deletions rush/c160214009.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--コスモス姫のお戯れ
--Jest of the Cosmos Princess
Duel.LoadCardScriptAlias(160017058)
3 changes: 3 additions & 0 deletions rush/c160214010.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--エクスキューティー・ライディング!
--Excutie Riding!
Duel.LoadCardScriptAlias(160014064)
3 changes: 3 additions & 0 deletions rush/c160214011.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--サンセットリバース
--Sunset Rebirth
Duel.LoadCardScriptAlias(160016066)
3 changes: 3 additions & 0 deletions rush/c160214018.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--ロマンス・ピック
--Romanpick
Duel.LoadCardScriptAlias(160002023)
3 changes: 3 additions & 0 deletions rush/c160214019.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--冥跡のジュンディー
--Jundee of the Dark Path
Duel.LoadCardScriptAlias(160448004)
3 changes: 3 additions & 0 deletions rush/c160214020.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--貪欲な壺
--Pot of Avarice (Rush)
Duel.LoadCardScriptAlias(160428100)
3 changes: 3 additions & 0 deletions rush/c160214021.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--ゴースト・サイクロン
--Ghost Cyclone
Duel.LoadCardScriptAlias(160009053)
3 changes: 3 additions & 0 deletions rush/c160214022.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--バックビート
--Back Beat
Duel.LoadCardScriptAlias(160007053)
3 changes: 3 additions & 0 deletions rush/c160214023.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--邪影ダーク・ルーカー
--Wicked Shadow Dark Lurker
Duel.LoadCardScriptAlias(160002030)
3 changes: 3 additions & 0 deletions rush/c160214024.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--トラディショナル・タックス
--Traditional Tax
Duel.LoadCardScriptAlias(160012063)
69 changes: 69 additions & 0 deletions rush/c160214025.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
--連撃竜騎士-セブンスナイト
--Sevens Knight the Multistrike Dragon Knight
--scripted by YoshiDuels
local s,id=GetID()
function s.initial_effect(c)
--fusion material
c:EnableReviveLimit()
Fusion.AddProcMix(c,true,true,CARD_SEVENS_ROAD_MAGICIAN,160302001)
--ATK increase
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1,0,EFFECT_COUNT_CODE_SINGLE)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(s.cost)
e1:SetOperation(s.atkop)
c:RegisterEffect(e1)
--Effect protection
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCountLimit(1,0,EFFECT_COUNT_CODE_SINGLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCost(s.cost)
e2:SetOperation(s.effop)
c:RegisterEffect(e2)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,1) end
end
function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--Requirement
if Duel.DiscardDeck(tp,1,REASON_COST)<1 then return end
--Effect
--Increase ATK
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_END)
e1:SetValue(500)
c:RegisterEffect(e1)
--Multiple attacks
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
e2:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_END)
e2:SetValue(1)
c:RegisterEffect(e2)
end
function s.effop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--Requirement
if Duel.DiscardDeck(tp,1,REASON_COST)<1 then return end
--Effect
--Cannot be destroyed by card effects
local e1=Effect.CreateEffect(c)
e1:SetDescription(3060)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetValue(1)
e1:SetReset(RESETS_STANDARD_PHASE_END,2)
c:RegisterEffect(e1)
end
44 changes: 44 additions & 0 deletions rush/c160214026.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
--ザ☆パーフェクト・ドラギアスター
--The Perfect Dragiastar
--scripted by YoshiDuels
local s,id=GetID()
function s.initial_effect(c)
--fusion material
c:EnableReviveLimit()
Fusion.AddProcMixN(c,true,true,160012003,1,s.matfilter,4)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetDescription(aux.Stringid(id,0))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(s.condition)
e1:SetCost(s.cost)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
s.named_material={160012003}
function s.matfilter(c,scard,sumtype,tp)
return c:IsLevel(7)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)<Duel.GetLP(1-tp)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,nil) end
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--Requirement
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,1,nil)
if Duel.SendtoGrave(g,REASON_COST)<1 then return end
--Effect
--Attack all
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetValue(1)
e1:SetCode(EFFECT_ATTACK_ALL)
e1:SetReset(RESETS_STANDARD_PHASE_END)
c:RegisterEffect(e1)
end
Loading