Commit 33de0377 authored by wyykak's avatar wyykak

fix genshin xyz monsters

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 95f7b065
Pipeline #12539 passed with stage
in 51 seconds
......@@ -16,7 +16,7 @@ function c50101.initial_effect(c)
c:RegisterEffect(e4)
end
function c50101.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50101.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -32,7 +32,7 @@ function c50103.initial_effect(c)
c:RegisterEffect(e2)
end
function c50103.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50103.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -24,7 +24,7 @@ function c50108.initial_effect(c)
c:RegisterEffect(e3)
end
function c50108.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50108.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -24,7 +24,7 @@ function c50121.initial_effect(c)
c:RegisterEffect(e3)
end
function c50121.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50121.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
......@@ -23,7 +23,7 @@ function c50210.initial_effect(c)
c:RegisterEffect(e3)
end
function c50210.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50210.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -26,7 +26,7 @@ function c50213.initial_effect(c)
c:RegisterEffect(e7)
end
function c50213.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50213.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
......@@ -22,7 +22,7 @@ function c50216.initial_effect(c)
c:RegisterEffect(e2)
end
function c50216.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50216.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -25,7 +25,7 @@ function c50219.initial_effect(c)
c:RegisterEffect(e3)
end
function c50219.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50219.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -14,7 +14,7 @@ function c50222.initial_effect(c)
c:RegisterEffect(e4)
end
function c50222.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50222.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -16,7 +16,7 @@ function c50225.initial_effect(c)
c:RegisterEffect(e4)
end
function c50225.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50225.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -24,7 +24,7 @@ function c50228.initial_effect(c)
Duel.RegisterEffect(e2,tp)
end
function c50228.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50228.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,3,REASON_COST) end
......
......@@ -16,7 +16,7 @@ function c50231.initial_effect(c)
c:RegisterEffect(e4)
end
function c50231.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50231.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -16,7 +16,7 @@ function c50234.initial_effect(c)
c:RegisterEffect(e4)
end
function c50234.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50234.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -15,7 +15,7 @@ function c50237.initial_effect(c)
c:RegisterEffect(e4)
end
function c50237.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50237.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,3,REASON_COST) end
......
......@@ -16,7 +16,7 @@ function c50240.initial_effect(c)
c:RegisterEffect(e4)
end
function c50240.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50240.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -16,7 +16,7 @@ function c50243.initial_effect(c)
c:RegisterEffect(e4)
end
function c50243.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50243.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -16,7 +16,7 @@ function c50255.initial_effect(c)
c:RegisterEffect(e4)
end
function c50255.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50255.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
......
......@@ -15,7 +15,7 @@ function c50277.initial_effect(c)
c:RegisterEffect(e4)
end
function c50277.xyzfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsSetCard(0x250)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsSetCard(0x250) and c:IsFaceup()
end
function c50277.bcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) 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