Commit db9a0a21 authored by Mr.Tan's avatar Mr.Tan

Fix 轟海皇 ポセイドラ

parent 925729f7
Pipeline #30914 failed with stages
in 10 seconds
......@@ -30,9 +30,11 @@ function s.initial_effect(c)
--limit attack
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
e4:SetRange(LOCATION_MZONE)
e4:SetCondition(s.atcon)
e4:SetValue(1)
e4:SetValue(aux.imval1)
c:RegisterEffect(e4)
end
function s.costfilter(c,tp)
......@@ -81,5 +83,5 @@ function s.cfilter(c)
return not c:IsCode(id) or c:IsFacedown()
end
function s.atcon(e)
return Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
return Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler())
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