Skip to content

Commit 040df03

Browse files
committed
added Storming Mirror Force
1 parent 4262bf5 commit 040df03

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

proc_rush.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
1010
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
1111
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
1212
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040,160020000,160214052,160323029,
13-
160214020,160021065,160021027,160402052,160215086,160324001,160402055,160324022,160023000}
13+
160214020,160021065,160021027,160402052,160215086,160324001,160402055,160324022,160023000,160217058}
1414
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
1515
function Card.IsLegend(c)
1616
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))

rush/c160217058.lua

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--神風のバリア -エア・フォース-
2+
--Storming 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_TOHAND)
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.activate)
13+
c:RegisterEffect(e1)
14+
end
15+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
16+
return Duel.IsTurnPlayer(1-tp)
17+
end
18+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
19+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAttackPos,tp,0,LOCATION_MZONE,1,nil) end
20+
local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,0,LOCATION_MZONE,nil)
21+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,#g,0,0)
22+
end
23+
function s.activate(e,tp,eg,ep,ev,re,r,rp)
24+
local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,0,LOCATION_MZONE,nil)
25+
if #g>0 then
26+
Duel.SendtoHand(g,nil,REASON_EFFECT)
27+
end
28+
end

0 commit comments

Comments
 (0)