Commit b115dac8 authored by GuGu's avatar GuGu

Update c22238.lua

parent 32492a32
Pipeline #33327 passed with stage
in 1 minute and 46 seconds
...@@ -39,19 +39,13 @@ function c22238.initial_effect(c) ...@@ -39,19 +39,13 @@ function c22238.initial_effect(c)
end end
-- --
function c22238.mfilter1(c) function c22238.mfilter1(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 c22238.mfilter2(c) function c22238.mfilter2(c)
local deck_check = 1 return c:IsAttribute(ATTRIBUTE_WATER) or (Duel.IsPlayerAffectedByEffect(tp,22249) and c:IsCode(22132,22200))
if Duel.IsPlayerAffectedByEffect(tp,22132) then deck_check = 0 end
return c:IsAttribute(ATTRIBUTE_WATER) or (Duel.IsPlayerAffectedByEffect(tp,22249) and ((c:IsSetCard(0x179) or c:IsCode(22200)) and (deck_check == 1 or not c:IsLocation(LOCATION_DECK))))
end end
function c22238.mfilter3(c) function c22238.mfilter3(c)
local deck_check = 1 return c:IsAttribute(ATTRIBUTE_FIRE) or (Duel.IsPlayerAffectedByEffect(tp,22249) and c:IsCode(22131,22200))
if Duel.IsPlayerAffectedByEffect(tp,22131) then deck_check = 0 end
return c:IsAttribute(ATTRIBUTE_FIRE) or (Duel.IsPlayerAffectedByEffect(tp,22249) and ((c:IsSetCard(0x178) or c:IsCode(22200)) and (deck_check == 1 or not c:IsLocation(LOCATION_DECK))))
end end
-- --
function c22238.filters(c) function c22238.filters(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