We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4262bf5 commit 040df03Copy full SHA for 040df03
proc_rush.lua
@@ -10,7 +10,7 @@ local LEGEND_LIST={160001000,160205001,160418001,160002000,160421015,160404001,1
10
160210058,160440010,160016033,160016034,160440011,160211080,160402039,160017033,160402040,160429003,160320014,
11
160320038,160018036,160212004,160212003,160402044,160212075,160212001,160402045,160019063,160019064,160019065,
12
160213078,160213082,160402047,160213084,160020059,160213076,160020001,160020040,160020000,160214052,160323029,
13
-160214020,160021065,160021027,160402052,160215086,160324001,160402055,160324022,160023000}
+160214020,160021065,160021027,160402052,160215086,160324001,160402055,160324022,160023000,160217058}
14
-- Returns if a card is a Legend. Can be updated if a GetOT function is added to the core
15
function Card.IsLegend(c)
16
return c:IsHasEffect(EFFECT_IS_LEGEND) or c:IsOriginalCode(table.unpack(LEGEND_LIST))
rush/c160217058.lua
@@ -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)
+ e1:SetCondition(s.condition)
+ e1:SetTarget(s.target)
+ e1:SetOperation(s.activate)
+ c:RegisterEffect(e1)
+end
+function s.condition(e,tp,eg,ep,ev,re,r,rp)
+ return Duel.IsTurnPlayer(1-tp)
17
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
23
+function s.activate(e,tp,eg,ep,ev,re,r,rp)
24
25
+ if #g>0 then
26
+ Duel.SendtoHand(g,nil,REASON_EFFECT)
27
+ end
28
0 commit comments