Skip to content

Commit 628ec9a

Browse files
authored
Update "Handbook to the Spiritual Arts"
Function call was generating an error.
1 parent 5b57ce3 commit 628ec9a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rush/c160218019.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ function s.initial_effect(c)
2121
Duel.RegisterEffect(ge1,0)
2222
end)
2323
end
24-
s.listed_names={160218019}
24+
s.listed_names={id} --"Handbook to the Spiritual Arts"
2525
function s.checkop(e,tp,eg,ep,ev,re,r,rp)
26-
if re:GetHandler():IsCode(160218019) then
26+
if re:GetHandler():IsCode(id) then
2727
Duel.RegisterFlagEffect(rp,id,RESET_PHASE|PHASE_END,0,1)
2828
end
2929
end
3030
function s.condition(e,tp,eg,ep,ev,re,r,rp)
31-
return Duel.GetFlagEffect(tp,id)==0
31+
return not Duel.HasFlagEffect(tp,id)
3232
end
3333
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
3434
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=5 end
@@ -67,7 +67,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
6767
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
6868
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
6969
e2:SetCode(EVENT_ATTACK_ANNOUNCE)
70-
e2:SetOperation(s.checkop)
70+
e2:SetOperation(s.diratkcheckop)
7171
e2:SetReset(RESET_PHASE|PHASE_END)
7272
e2:SetLabelObject(e1)
7373
Duel.RegisterEffect(e2,tp)
@@ -86,10 +86,10 @@ end
8686
function s.atktg(e,c)
8787
return c:GetFieldID()~=e:GetLabel()
8888
end
89-
function s.checkop(e,tp,eg,ep,ev,re,r,rp)
89+
function s.diratkcheckop(e,tp,eg,ep,ev,re,r,rp)
9090
local tg=Duel.GetAttackTarget()
9191
if tg==nil then
9292
local fid=eg:GetFirst():GetFieldID()
9393
e:GetLabelObject():SetLabel(fid)
9494
end
95-
end
95+
end

0 commit comments

Comments
 (0)