Skip to content

Commit bd44c02

Browse files
committed
added new rush cards
1 parent c7c56b8 commit bd44c02

File tree

3 files changed

+81
-1
lines changed

3 files changed

+81
-1
lines changed

proc_rush.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
88
160436005,160437001,160206019,160206002,160206008,160206022,160206028,160013020,160440001,160440002,160440003,
99
160429002,160208063,160208064,160208065,160014065,160446002,160015056,160210001,160207060,160210032,160210029,
1010
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
11-
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065}
11+
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
12+
160213078,160213082}
1213
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
1314
function Card.IsLegend(c)
1415
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))

rush/c160213078.lua

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--超伝導恐獣
2+
--Super Conductor Tyranno
3+
--Scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--inflict 500 damage
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_DAMAGE)
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.cost(e,tp,eg,ep,ev,re,r,rp,chk)
19+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,1,nil) end
20+
end
21+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return true end
23+
Duel.SetTargetPlayer(1-tp)
24+
Duel.SetTargetParam(1000)
25+
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1000)
26+
end
27+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
28+
--Requirement
29+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
30+
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,1,1,nil)
31+
if Duel.SendtoGrave(g,REASON_COST)<1 then return end
32+
--Effect
33+
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
34+
Duel.Damage(p,d,REASON_EFFECT)
35+
--Cannot attack directly
36+
local c=e:GetHandler()
37+
local e3=Effect.CreateEffect(c)
38+
e3:SetDescription(3206)
39+
e3:SetType(EFFECT_TYPE_SINGLE)
40+
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
41+
e3:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
42+
e3:SetReset(RESETS_STANDARD_PHASE_END)
43+
c:RegisterEffect(e3)
44+
end

rush/c160213082.lua

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
--ライトニング・ボルテックス
2+
--Lightning Vortex
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_DESTROY)
9+
e1:SetType(EFFECT_TYPE_ACTIVATE)
10+
e1:SetCode(EVENT_FREE_CHAIN)
11+
e1:SetCost(s.cost)
12+
e1:SetTarget(s.target)
13+
e1:SetOperation(s.activate)
14+
c:RegisterEffect(e1)
15+
end
16+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
17+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,e:GetHandler()) end
18+
end
19+
function s.filter(c)
20+
return c:IsFaceup() and c:IsNotMaximumModeSide()
21+
end
22+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
23+
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_MZONE,1,nil) end
24+
local sg=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil)
25+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0)
26+
end
27+
function s.activate(e,tp,eg,ep,ev,re,r,rp)
28+
--Requirement
29+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
30+
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,1,e:GetHandler())
31+
if Duel.SendtoGrave(g,REASON_COST)<1 then return end
32+
--Effect
33+
local sg=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil)
34+
Duel.Destroy(sg,REASON_EFFECT)
35+
end

0 commit comments

Comments
 (0)