Commit 222b7c45 authored by Vury Leo's avatar Vury Leo

lint

parent a0c17d03
Pipeline #37420 failed with stages
in 1 minute and 15 seconds
......@@ -21,21 +21,21 @@ function s.fcheck(tp,mg,fc,mg_all)
-- Filter the group to get only the opponent’s Fusion Materials
---@param c Card
local mg_opponent=mg:Filter(function(c) return c:IsControler(1-tp) end,nil)
-- No more than one Fusion Material from the opponent is allowed
-- No more than one Fusion Material from the opponent is allowed
if #mg_opponent>1 then
return false
end
-- Any opponent material used must be a LINK monster
-- Any opponent material used must be a LINK monster
---@param c Card
if mg_opponent:IsExists(function(c) return not c:IsType(TYPE_LINK) end,1,nil) then
return false
end
-- If using an opponent’s monster, you must also use at least one “@Ignister” monster you control
-- If using an opponent’s monster, you must also use at least one “@Ignister” monster you control
---@param c Card
if #mg_opponent>0 and not mg_all:IsExists(function(c)
return c:IsControler(tp) and c:IsFusionSetCard(0x135)
end,1,nil) then
return false
end
if #mg_opponent>0 and not mg_all:IsExists(function(c)
return c:IsControler(tp) and c:IsFusionSetCard(0x135)
end,1,nil) then
return false
end
return true
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