Skip to content

Commit 4ee8d1f

Browse files
committed
added new rush cards
1 parent 5efdaec commit 4ee8d1f

3 files changed

Lines changed: 97 additions & 0 deletions

File tree

rush/c160218068.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--P・M AR-ブラウ
2+
--Plasmatic Model Another Rising Blau
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Ritual
7+
c:EnableReviveLimit()
8+
--Monsters on your opponent's field lose 600 ATK/DEF
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetType(EFFECT_TYPE_FIELD)
11+
e1:SetCode(EFFECT_UPDATE_ATTACK)
12+
e1:SetRange(LOCATION_MZONE)
13+
e1:SetTargetRange(0,LOCATION_MZONE)
14+
e1:SetTarget(aux.TargetBoolFunction(Card.IsFaceup))
15+
e1:SetValue(-600)
16+
c:RegisterEffect(e1)
17+
local e2=e1:Clone()
18+
e2:SetCode(EFFECT_UPDATE_DEFENSE)
19+
c:RegisterEffect(e2)
20+
end

rush/c160218070.lua

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--P・M アナザープレイ
2+
--Plasmatic Model Another Play
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
local e1=Ritual.CreateProc({handler=c,lvtype=RITPROC_GREATER,filter=s.ritualfil,matfilter=s.forcedgroup,stage2=s.stage2})
7+
c:RegisterEffect(e1)
8+
end
9+
s.listed_names={160021047,160218068}
10+
function s.ritualfil(c)
11+
return c:IsCode(160021047,160218068)
12+
end
13+
function s.forcedgroup(c,e,tp)
14+
return c:IsLocation(LOCATION_MZONE) and c:IsRace(RACE_THUNDER) and c:IsFaceup()
15+
end
16+
function s.stage2(mg,e,tp,eg,ep,ev,re,r,rp,tc)
17+
--Prevent non-Thunders from attacking
18+
local e1=Effect.CreateEffect(e:GetHandler())
19+
e1:SetType(EFFECT_TYPE_FIELD)
20+
e1:SetCode(EFFECT_CANNOT_ATTACK)
21+
e1:SetProperty(EFFECT_FLAG_OATH)
22+
e1:SetTargetRange(LOCATION_MZONE,0)
23+
e1:SetTarget(s.ftarget)
24+
e1:SetReset(RESET_PHASE|PHASE_END)
25+
Duel.RegisterEffect(e1,tp)
26+
end
27+
function s.ftarget(e,c)
28+
return not c:IsRace(RACE_THUNDER)
29+
end

rush/c160218075.lua

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
--ディパーチャー・ゾーン
2+
--Departure Zone
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:SetType(EFFECT_TYPE_ACTIVATE)
9+
e1:SetCode(EVENT_FREE_CHAIN)
10+
e1:SetCondition(s.condition)
11+
e1:SetCost(s.cost)
12+
e1:SetOperation(s.operation)
13+
c:RegisterEffect(e1)
14+
--Prevent destruction by effects
15+
local e2=Effect.CreateEffect(c)
16+
e2:SetType(EFFECT_TYPE_SINGLE)
17+
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
18+
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
19+
e2:SetRange(LOCATION_FZONE)
20+
e2:SetValue(1)
21+
c:RegisterEffect(e2)
22+
--Draw until 6 cards in your hand instead of until 5 cards
23+
local e3=Effect.CreateEffect(c)
24+
e3:SetType(EFFECT_TYPE_FIELD)
25+
e3:SetCode(EFFECT_DRAW_COUNT)
26+
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
27+
e3:SetRange(LOCATION_FZONE)
28+
e3:SetTargetRange(1,1)
29+
local function get_draw(e) return Duel.GetFieldGroupCount(Duel.GetTurnPlayer(),LOCATION_HAND,0) end
30+
e3:SetCondition(s.drcond)
31+
e3:SetValue(function(e)return 6-get_draw(e) end)
32+
c:RegisterEffect(e3)
33+
end
34+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
35+
return Duel.GetTurnCount()~=1
36+
end
37+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
38+
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,2) end
39+
end
40+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
41+
local c=e:GetHandler()
42+
--Requirement
43+
Duel.DiscardDeck(tp,2,REASON_COST)
44+
end
45+
function s.drcond(e)
46+
local tp=Duel.GetTurnPlayer()
47+
return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<6 and Duel.IsExistingMatchingCard(nil,tp,LOCATION_FZONE,0,1,nil)
48+
end

0 commit comments

Comments
 (0)