Skip to content

Commit 95112e0

Browse files
committed
fixed Handbook to the Spiritual Arts
1 parent b8615e0 commit 95112e0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

rush/c160218019.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,26 @@ function s.initial_effect(c)
99
e1:SetCategory(CATEGORY_DESTROY)
1010
e1:SetType(EFFECT_TYPE_ACTIVATE)
1111
e1:SetCode(EVENT_FREE_CHAIN)
12+
e1:SetCondition(s.condition)
1213
e1:SetTarget(s.target)
1314
e1:SetOperation(s.operation)
1415
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+
end
30+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
31+
return Duel.GetFlagEffect(tp,id)==0
1532
end
1633
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
1734
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=5 end

0 commit comments

Comments
 (0)