Skip to content

Commit 137fcad

Browse files
committed
updated Amusi Annoyance
1 parent 8cd8805 commit 137fcad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rush/c160014063.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,18 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp)
7979
end
8080
end
8181
end
82+
function s.chkfilter(c,tp)
83+
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
84+
end
8285
function s.regop2(e,tp,eg,ep,ev,re,r,rp)
8386
if e:GetHandler():IsLocation(LOCATION_SZONE) and e:GetHandler():IsFacedown() then --need to check here because face-down Defense Position cards cannot use effects
8487
local cg=e:GetLabelObject():GetLabelObject()
8588
local ep=e:GetHandler():GetControler()
8689
--Raise 1 event after chain
8790
if Duel.GetFlagEffect(ep,id)==0 and #cg>0 then
88-
if not cg:IsExists(s.filter,1,nil,1-ep) then -- The following does not apply if a card is sent from the Deck, as in that case, the first copy will trigger the second copy
89-
cg:Clear() --Must be cleared so multiple copies cannot trigger
90-
end
9191
Duel.RegisterFlagEffect(ep,id,RESET_CHAIN,0,1)
9292
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+id,e,0,ep,ep,0)
93+
cg:Clear() --Must be cleared so multiple copies cannot trigger
9394
end
9495
elseif #e:GetLabelObject():GetLabelObject()>0 then --if the card has seen a card but is not face-down in the S/T zone anymore, it should forget about it
9596
e:GetLabelObject():GetLabelObject():Clear()

0 commit comments

Comments
 (0)