Commit d7fa264a authored by sidschingis's avatar sidschingis

fix self destruct condition

facedown monsters will cause self destruction
parent 47fddf52
...@@ -33,7 +33,7 @@ function c20758643.initial_effect(c) ...@@ -33,7 +33,7 @@ function c20758643.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c20758643.sdfilter(c) function c20758643.sdfilter(c)
return c:IsFaceup() and not c:IsSetCard(0xb1) return not c:IsFaceup() or not c:IsSetCard(0xb1)
end end
function c20758643.sdcon(e) function c20758643.sdcon(e)
return Duel.IsExistingMatchingCard(c20758643.sdfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c20758643.sdfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
......
...@@ -33,7 +33,7 @@ function c57143342.initial_effect(c) ...@@ -33,7 +33,7 @@ function c57143342.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c57143342.sdfilter(c) function c57143342.sdfilter(c)
return c:IsFaceup() and not c:IsSetCard(0xb1) return not c:IsFaceup() or not c:IsSetCard(0xb1)
end end
function c57143342.sdcon(e) function c57143342.sdcon(e)
return Duel.IsExistingMatchingCard(c57143342.sdfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c57143342.sdfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
......
...@@ -27,7 +27,7 @@ function c84764038.initial_effect(c) ...@@ -27,7 +27,7 @@ function c84764038.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c84764038.sdfilter(c) function c84764038.sdfilter(c)
return c:IsFaceup() and not c:IsSetCard(0xb1) return not c:IsFaceup() or not c:IsSetCard(0xb1)
end end
function c84764038.sdcon(e) function c84764038.sdcon(e)
return Duel.IsExistingMatchingCard(c84764038.sdfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c84764038.sdfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
......
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