Commit c261a46e authored by GuGu's avatar GuGu

Update c22240.lua

parent d4b8ffcf
Pipeline #33329 passed with stage
in 22 seconds
...@@ -39,19 +39,13 @@ function c22240.initial_effect(c) ...@@ -39,19 +39,13 @@ function c22240.initial_effect(c)
end end
-- --
function c22240.mfilter1(c) function c22240.mfilter1(c)
local deck_check = 1 return c:IsAttribute(ATTRIBUTE_DARK) or (Duel.IsPlayerAffectedByEffect(tp,22249) and c:IsCode(22162,22200))
if Duel.IsPlayerAffectedByEffect(tp,22162) then deck_check = 0 end
return c:IsAttribute(ATTRIBUTE_DARK) or (Duel.IsPlayerAffectedByEffect(tp,22249) and ((c:IsSetCard(0x184) or c:IsCode(22200)) and (deck_check == 1 or not c:IsLocation(LOCATION_DECK))))
end end
function c22240.mfilter2(c) function c22240.mfilter2(c)
local deck_check = 1 return c:IsAttribute(ATTRIBUTE_LIGHT) or (Duel.IsPlayerAffectedByEffect(tp,22249) and c:IsCode(22161,22200))
if Duel.IsPlayerAffectedByEffect(tp,22161) then deck_check = 0 end
return c:IsAttribute(ATTRIBUTE_LIGHT) or (Duel.IsPlayerAffectedByEffect(tp,22249) and ((c:IsSetCard(0x183) or c:IsCode(22200)) and (deck_check == 1 or not c:IsLocation(LOCATION_DECK))))
end end
function c22240.mfilter3(c) function c22240.mfilter3(c)
local deck_check = 1 return c:IsAttribute(ATTRIBUTE_WIND) or (Duel.IsPlayerAffectedByEffect(tp,22249) and c:IsCode(22133,22200))
if Duel.IsPlayerAffectedByEffect(tp,22133) then deck_check = 0 end
return c:IsAttribute(ATTRIBUTE_WIND) or (Duel.IsPlayerAffectedByEffect(tp,22249) and ((c:IsSetCard(0x180) or c:IsCode(22200)) and (deck_check == 1 or not c:IsLocation(LOCATION_DECK))))
end end
-- --
function c22240.filter(c) function c22240.filter(c)
......
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