Skip to content

Commit a8b2f9e

Browse files
committed
added new rush cards
1 parent 10ebf64 commit a8b2f9e

File tree

3 files changed

+91
-2
lines changed

3 files changed

+91
-2
lines changed

rush/c160021036.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ end
2828
function s.operation(e,tp,eg,ep,ev,re,r,rp)
2929
--Effect
3030
Duel.DiscardDeck(tp,4,REASON_EFFECT)
31-
local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_GRAVE,0,nil,e,tp)
31+
local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_GRAVE|LOCATION_HAND,0,nil,e,tp)
3232
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
3333
Duel.BreakEffect()
3434
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
35-
local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst()
35+
local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE|LOCATION_HAND,0,1,1,nil,e,tp):GetFirst()
3636
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
3737
end
3838
end

rush/c160455005.lua

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--海影のモミュ
2+
--Momyu the Sea Shadow Spirit
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Take control of an opponent's face-down monster
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_CONTROL)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetCountLimit(1)
13+
e1:SetCondition(s.condition)
14+
e1:SetCost(s.cost)
15+
e1:SetTarget(s.target)
16+
e1:SetOperation(s.operation)
17+
c:RegisterEffect(e1)
18+
end
19+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
20+
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN)
21+
end
22+
function s.ctrlfilter(c)
23+
return c:IsFacedown() and c:IsControlerCanBeChanged()
24+
end
25+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
26+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,2,nil) end
27+
end
28+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
29+
if chk==0 then return Duel.IsExistingMatchingCard(s.ctrlfilter,tp,0,LOCATION_MZONE,1,nil) end
30+
Duel.SetOperationInfo(0,CATEGORY_CONTROL,nil,1,0,0)
31+
end
32+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
33+
local c=e:GetHandler()
34+
--Requirement
35+
local cg=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,2,2,nil)
36+
if Duel.SendtoGrave(cg,REASON_COST)<1 then return end
37+
--Effect
38+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
39+
local dg=Duel.SelectMatchingCard(tp,s.ctrlfilter,tp,0,LOCATION_MZONE,1,1,nil)
40+
if #dg>0 then
41+
Duel.HintSelection(dg)
42+
Duel.GetControl(dg,tp)
43+
end
44+
end

rush/c160455006.lua

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
--幻遭のキメラスネーク
2+
--Mythical Chimera Snake
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
local e1=Effect.CreateEffect(c)
7+
e1:SetDescription(aux.Stringid(id,0))
8+
e1:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
9+
e1:SetType(EFFECT_TYPE_IGNITION)
10+
e1:SetRange(LOCATION_MZONE)
11+
e1:SetCountLimit(1)
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.condition(e,tp,eg,ep,ev,re,r,rp)
19+
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN)
20+
end
21+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,2) end
23+
end
24+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_GRAVE,1,nil) end
26+
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,2,1-tp,LOCATION_GRAVE)
27+
end
28+
function s.cfilter(c)
29+
return c:IsLocation(LOCATION_GRAVE) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsMonster()
30+
end
31+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
32+
--Requirement
33+
if Duel.DiscardDeck(tp,2,REASON_COST)<0 then return end
34+
local og=Duel.GetOperatedGroup()
35+
--Effect
36+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
37+
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsAbleToDeck),tp,0,LOCATION_GRAVE,1,2,nil)
38+
Duel.HintSelection(g)
39+
if #g==0 then return end
40+
local ct=og:FilterCount(s.cfilter,nil)
41+
if Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)>0 and ct>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
42+
Duel.BreakEffect()
43+
Duel.Damage(1-tp,400,REASON_EFFECT)
44+
end
45+
end

0 commit comments

Comments
 (0)