Skip to content

Commit 573a82a

Browse files
committed
fixed Void Dust Fusion
1 parent 2898826 commit 573a82a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

rush/c160020052.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,20 @@ function s.matfilter(c)
3131
end
3232
function s.atklimit(e,sc,tp,sg,chk)
3333
if chk==0 then
34-
--Register a flag to the summoned monster
35-
sc:RegisterFlagEffect(id,RESETS_STANDARD_PHASE_END,0,1)
3634
--Monsters other than the summoned monster cannot attack this turn
3735
local e1=Effect.CreateEffect(e:GetHandler())
3836
e1:SetType(EFFECT_TYPE_FIELD)
3937
e1:SetCode(EFFECT_CANNOT_ATTACK)
4038
e1:SetTargetRange(LOCATION_MZONE,0)
41-
e1:SetTarget(function(e,c) return not c:HasFlagEffect(id) end)
42-
e1:SetReset(RESET_PHASE|PHASE_END)
39+
e1:SetTarget(s.ftarget)
40+
e1:SetLabel(sc:GetFieldID())
41+
e1:SetReset(RESET_PHASE+PHASE_END)
4342
Duel.RegisterEffect(e1,tp)
4443
end
4544
end
45+
function s.ftarget(e,c)
46+
return e:GetLabel()~=c:GetFieldID()
47+
end
4648
function s.costfilter(c,e,tp,eg,ep,ev,re,r,rp)
4749
if not (c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY) and c:IsType(TYPE_NORMAL)) then return false end
4850
local fusion_params={fusfilter=s.fusmonfilter,

0 commit comments

Comments
 (0)