Commit 60f5d83e authored by wind2009's avatar wind2009

Merge branch 'patch-6' into 'master'

Fix 轟海皇 ポセイドラ

See merge request mycard/pre-release-database-cdb!145
parents 925729f7 db9a0a21
......@@ -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