Skip to content

Commit 9ac9830

Browse files
committed
added Drowning Mirror Force
1 parent aa1d319 commit 9ac9830

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

proc_rush.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
99
160429002,160208063,160208064,160208065,160014065,160446002,160015056,160210001,160207060,160210032,160210029,
1010
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
1111
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
12-
160213078,160213082,160402047}
12+
160213078,160213082,160402047,160213084}
1313
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
1414
function Card.IsLegend(c)
1515
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))

rush/c160213084.lua

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
--波紋のバリア -ウェーブ・フォース-
2+
--Drowning Mirror Force
3+
local s,id=GetID()
4+
function s.initial_effect(c)
5+
--Activate
6+
local e1=Effect.CreateEffect(c)
7+
e1:SetCategory(CATEGORY_TODECK)
8+
e1:SetType(EFFECT_TYPE_ACTIVATE)
9+
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
10+
e1:SetCondition(s.condition)
11+
e1:SetTarget(s.target)
12+
e1:SetOperation(s.operation)
13+
c:RegisterEffect(e1)
14+
end
15+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
16+
return eg and eg:GetFirst():IsControler(1-tp) and Duel.GetAttackTarget()==nil
17+
end
18+
function s.filter(c)
19+
return c:IsAttackPos() and c:IsAbleToDeck()
20+
end
21+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_MZONE,1,nil) end
23+
local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil)
24+
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,#g,0,0)
25+
end
26+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
27+
local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil)
28+
if #g>0 then
29+
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
30+
end
31+
end

0 commit comments

Comments
 (0)