Commit ca9ab5d9 authored by 未闻皂名's avatar 未闻皂名

2023/2/10 bug修复

parent 0303a324
......@@ -175,9 +175,10 @@ function RushDuel.CreateOnlyThisAttackEffect(e, code, player, s_range, o_range,
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetLabelObject(c)
e1:SetTargetRange(s_range, o_range)
e1:SetTarget(function(e, c)
return c:GetFlagEffect(code) == 0
return c == e:GetLabelObject() and c:GetFlagEffect(code) == 0
end)
e1:SetReset(reset)
Duel.RegisterEffect(e1, player)
......@@ -344,4 +345,4 @@ function RushDuel.FlatCheck(check, ...)
end
end
return false
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment