Skip to content

Commit 0b82696

Browse files
committed
added new rush cards
1 parent 0124ab1 commit 0b82696

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed

rush/c160216069.lua

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
--エクスキューティー・レイア・F
2+
--Executie Leir Frontiere
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--fusion material
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMix(c,true,true,160205037,160205032)
9+
Fusion.AddContactProc(c,s.contactfil,s.contactop,nil,nil,SUMMON_TYPE_FUSION,nil,false)
10+
--Draw
11+
local e1=Effect.CreateEffect(c)
12+
e1:SetDescription(aux.Stringid(id,0))
13+
e1:SetCategory(CATEGORY_DRAW|CATEGORY_ATKCHANGE)
14+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
15+
e1:SetType(EFFECT_TYPE_IGNITION)
16+
e1:SetRange(LOCATION_MZONE)
17+
e1:SetCountLimit(1)
18+
e1:SetCondition(s.condition)
19+
e1:SetTarget(s.target)
20+
e1:SetOperation(s.operation)
21+
c:RegisterEffect(e1)
22+
end
23+
function s.contactfil(tp)
24+
return Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsAbleToDeckOrExtraAsCost),tp,LOCATION_ONFIELD,0,nil)
25+
end
26+
function s.contactop(g,tp)
27+
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST+REASON_MATERIAL)
28+
end
29+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
30+
local c=e:GetHandler()
31+
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_FUSION)
32+
end
33+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
34+
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
35+
Duel.SetTargetPlayer(tp)
36+
Duel.SetTargetParam(1)
37+
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
38+
end
39+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
40+
local c=e:GetHandler()
41+
--Effect
42+
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
43+
if Duel.Draw(p,d,REASON_EFFECT)>0 then
44+
--Increase ATK
45+
local e1=Effect.CreateEffect(c)
46+
e1:SetType(EFFECT_TYPE_SINGLE)
47+
e1:SetCode(EFFECT_UPDATE_ATTACK)
48+
e1:SetValue(500)
49+
e1:SetReset(RESETS_STANDARD_PHASE_END)
50+
c:RegisterEffect(e1)
51+
end
52+
--Attack Limit
53+
local e2=Effect.CreateEffect(c)
54+
e2:SetType(EFFECT_TYPE_FIELD)
55+
e2:SetCode(EFFECT_CANNOT_ATTACK)
56+
e2:SetTargetRange(LOCATION_MZONE,0)
57+
e2:SetTarget(function(_,c) return not c:IsDefense(500) end)
58+
e2:SetReset(RESET_PHASE|PHASE_END)
59+
Duel.RegisterEffect(e2,tp)
60+
end

rush/c160324030.lua

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
--帝王の登竜
2+
--Perseverance of the Monarchs
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Shuffle monsters with 1000 DEF
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetType(EFFECT_TYPE_ACTIVATE)
10+
e1:SetCode(EVENT_SUMMON_SUCCESS)
11+
e1:SetProperty(EFFECT_FLAG_DELAY)
12+
e1:SetCondition(s.condition)
13+
e1:SetTarget(s.target)
14+
e1:SetOperation(s.activate)
15+
c:RegisterEffect(e1)
16+
local e2=e1:Clone()
17+
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
18+
c:RegisterEffect(e2)
19+
end
20+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
21+
return eg:IsExists(Card.IsSummonPlayer,1,nil,1-tp)
22+
end
23+
function s.filter(c)
24+
return c:IsMonster() and c:IsDefense(1000) and c:IsAbleToDeck()
25+
end
26+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
27+
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,3,nil) end
28+
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_GRAVE)
29+
end
30+
function s.desfilter(c)
31+
return c:IsFaceup() and not c:IsMaximumModeSide()
32+
end
33+
function s.activate(e,tp,eg,ep,ev,re,r,rp)
34+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
35+
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_GRAVE,0,3,3,nil)
36+
if #g==0 then return end
37+
Duel.HintSelection(g)
38+
local g2=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil)
39+
if Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)>0 and Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0 and #g2>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
40+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
41+
local sg=g2:Select(tp,1,1,nil)
42+
if #sg==0 then return end
43+
local sg2=sg:AddMaximumCheck()
44+
Duel.HintSelection(sg2)
45+
Duel.BreakEffect()
46+
Duel.Destroy(sg,REASON_EFFECT)
47+
end
48+
end

0 commit comments

Comments
 (0)