Commit 84f05408 authored by GuGu's avatar GuGu

Update c22234.lua

parent 8334051e
Pipeline #33325 passed with stage
in 1 minute and 40 seconds
...@@ -46,14 +46,10 @@ function c22234.mfilter1(c) ...@@ -46,14 +46,10 @@ function c22234.mfilter1(c)
return c:IsRace(RACE_SPELLCASTER) return c:IsRace(RACE_SPELLCASTER)
end end
function c22234.mfilter2(c) function c22234.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 c22234.mfilter3(c) function c22234.mfilter3(c)
local deck_check = 1 return c:IsAttribute(ATTRIBUTE_EARTH) or (Duel.IsPlayerAffectedByEffect(tp,22249) and c:IsCode(22135,22200))
if Duel.IsPlayerAffectedByEffect(tp,22135) then deck_check = 0 end
return c:IsAttribute(ATTRIBUTE_EARTH) or (Duel.IsPlayerAffectedByEffect(tp,22249) and ((c:IsSetCard(0x182) or c:IsCode(22200)) and (deck_check == 1 or not c:IsLocation(LOCATION_DECK))))
end end
function c22234.filter(c) function c22234.filter(c)
return c:IsSetCard(0xb046) and c:IsAbleToHand() return c:IsSetCard(0xb046) and c:IsAbleToHand()
......
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