Commit bd6e8856 authored by Amiya's avatar Amiya

修复

parent 72a9dad6
Pipeline #30699 passed with stages
in 2 minutes and 8 seconds
...@@ -26,12 +26,12 @@ function s.initial_effect(c) ...@@ -26,12 +26,12 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.spfilter(c,e,tp,att) function s.spfilter(c,e,tp,att)
if att and not c:IsAttribute(att) then return false end if att and not c:IsAttribute(ATTRIBUTE_WATER) then return false end
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,c:GetOwner()) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,c:GetOwner())
and Duel.IsExistingMatchingCard(s.desfilter,c:GetOwner(),LOCATION_MZONE,0,1,nil,c:GetOwner(),att) and Duel.IsExistingMatchingCard(s.desfilter,c:GetOwner(),LOCATION_MZONE,0,1,nil,c:GetOwner(),att)
end end
function s.desfilter(c,tp,att) function s.desfilter(c,tp,att)
if not att and not c:IsAttribute(att) then return false end if not att and not c:IsAttribute(ATTRIBUTE_WATER) then return false end
return c:IsFaceup() return c:IsFaceup()
and Duel.GetMZoneCount(tp,c)>0 and Duel.GetMZoneCount(tp,c)>0
end 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