Skip to content

Commit 41c6102

Browse files
committed
added new rush cards
1 parent 2e3491f commit 41c6102

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

rush/c160213012.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
--真紅眼の冥竜
2+
--Red-Eyes Pluto Dragon
3+
--Scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Fusion Summon
7+
local params = {s.filter,s.mfilter,s.fextra,Fusion.ShuffleMaterial}
8+
local e1=Effect.CreateEffect(c)
9+
e1:SetDescription(aux.Stringid(id,0))
10+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
11+
e1:SetType(EFFECT_TYPE_IGNITION)
12+
e1:SetRange(LOCATION_MZONE)
13+
e1:SetCountLimit(1)
14+
e1:SetCondition(function(e) return e:GetHandler():IsStatus(STATUS_SUMMON_TURN) end)
15+
e1:SetTarget(Fusion.SummonEffTG(table.unpack(params)))
16+
e1:SetOperation(Fusion.SummonEffOP(table.unpack(params)))
17+
c:RegisterEffect(e1)
18+
end
19+
function s.filter(c)
20+
return c:IsAttribute(ATTRIBUTE_DARK|ATTRIBUTE_FIRE) and not c:IsType(TYPE_EFFECT)
21+
end
22+
function s.mfilter(c)
23+
return c:IsLocation(LOCATION_GRAVE|LOCATION_MZONE) and c:IsAbleToDeck()
24+
end
25+
function s.fextra(e,tp,mg)
26+
return Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_GRAVE|LOCATION_MZONE,0,nil)
27+
end

rush/c160213062.lua

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
--代打バッター
2+
--Pinch Hopper
3+
--Scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
-- Special Summon
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND)
9+
e1:SetType(EFFECT_TYPE_IGNITION)
10+
e1:SetRange(LOCATION_MZONE)
11+
e1:SetCountLimit(1)
12+
e1:SetCost(s.spcost)
13+
e1:SetTarget(s.sptg)
14+
e1:SetOperation(s.spop)
15+
c:RegisterEffect(e1)
16+
end
17+
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
18+
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
19+
end
20+
function s.spfilter(c,e,tp)
21+
return c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
22+
end
23+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
24+
if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0
25+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
26+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
27+
end
28+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
29+
local c=e:GetHandler()
30+
if Duel.SendtoGrave(c,REASON_COST)<1 then return end
31+
--Effect
32+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
33+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
34+
if #g>0 then
35+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
36+
end
37+
end

rush/c160213068.lua

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
--ライヤー・ワイヤー
2+
--Lair Wire
3+
--Scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
-- Destroy
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_DESTROY)
10+
e1:SetType(EFFECT_TYPE_ACTIVATE)
11+
e1:SetCode(EVENT_SUMMON_SUCCESS)
12+
e1:SetCost(s.cost)
13+
e1:SetTarget(s.target)
14+
e1:SetOperation(s.operation)
15+
c:RegisterEffect(e1)
16+
end
17+
function s.tdfilter(c)
18+
return c:IsMonster() and c:IsRace(RACE_INSECT) and c:IsAbleToDeckOrExtraAsCost()
19+
end
20+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
21+
if chk==0 then return Duel.IsExistingMatchingCard(s.tdfilter,tp,LOCATION_GRAVE,0,1,nil) end
22+
end
23+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
24+
local tc=eg:GetFirst()
25+
if chk==0 then return ep==1-tp and tc:IsFaceup() and tc:IsLocation(LOCATION_MZONE) end
26+
tc:CreateEffectRelation(e)
27+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0)
28+
end
29+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
30+
--Requirement
31+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
32+
local td=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_GRAVE,0,1,1,nil)
33+
Duel.HintSelection(td)
34+
if Duel.SendtoDeck(td,nil,SEQ_DECKBOTTOM,REASON_COST)<1 then return end
35+
--Effect
36+
local tc=eg:GetFirst()
37+
if tc then
38+
Duel.Destroy(tc,REASON_EFFECT)
39+
end
40+
end

0 commit comments

Comments
 (0)