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 b8615e0 commit 95112e0Copy full SHA for 95112e0
rush/c160218019.lua
@@ -9,9 +9,26 @@ function s.initial_effect(c)
9
e1:SetCategory(CATEGORY_DESTROY)
10
e1:SetType(EFFECT_TYPE_ACTIVATE)
11
e1:SetCode(EVENT_FREE_CHAIN)
12
+ e1:SetCondition(s.condition)
13
e1:SetTarget(s.target)
14
e1:SetOperation(s.operation)
15
c:RegisterEffect(e1)
16
+ aux.GlobalCheck(s,function()
17
+ local ge1=Effect.CreateEffect(c)
18
+ ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
19
+ ge1:SetCode(EVENT_CHAIN_SOLVED)
20
+ ge1:SetOperation(s.checkop)
21
+ Duel.RegisterEffect(ge1,0)
22
+ end)
23
+end
24
+s.listed_names={160218019}
25
+function s.checkop(e,tp,eg,ep,ev,re,r,rp)
26
+ if re:GetHandler():IsCode(160218019) then
27
+ Duel.RegisterFlagEffect(rp,id,RESET_PHASE|PHASE_END,0,1)
28
+ end
29
30
+function s.condition(e,tp,eg,ep,ev,re,r,rp)
31
+ return Duel.GetFlagEffect(tp,id)==0
32
end
33
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
34
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=5 end
0 commit comments