Commit c3f81f83 authored by mercury233's avatar mercury233

fix Weather Painters

parent e5178055
...@@ -42,7 +42,8 @@ function c27784944.initial_effect(c) ...@@ -42,7 +42,8 @@ function c27784944.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c27784944.tffilter(c,tp) function c27784944.tffilter(c,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x109) and not c:IsForbidden() and c:CheckUniqueOnField(tp) return c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsType(TYPE_FIELD) and c:IsSetCard(0x109)
and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end end
function c27784944.tftg(e,tp,eg,ep,ev,re,r,rp,chk) function c27784944.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
......
...@@ -35,7 +35,7 @@ function c54895237.gspcfilter(c,tp) ...@@ -35,7 +35,7 @@ function c54895237.gspcfilter(c,tp)
and Duel.IsExistingMatchingCard(c54895237.gspfilter,tp,LOCATION_HAND,0,1,nil,c,tp) and Duel.IsExistingMatchingCard(c54895237.gspfilter,tp,LOCATION_HAND,0,1,nil,c,tp)
end end
function c54895237.gspfilter(c,cc,tp) function c54895237.gspfilter(c,cc,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x109) return c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsType(TYPE_FIELD) and c:IsSetCard(0x109)
and not c:IsForbidden() and c:CheckUniqueOnField(tp,LOCATION_ONFIELD,cc) and not c:IsForbidden() and c:CheckUniqueOnField(tp,LOCATION_ONFIELD,cc)
end end
function c54895237.gspcost(e,tp,eg,ep,ev,re,r,rp,chk) function c54895237.gspcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -29,7 +29,8 @@ function c65017789.initial_effect(c) ...@@ -29,7 +29,8 @@ function c65017789.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c65017789.tffilter(c,tp) function c65017789.tffilter(c,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x109) and not c:IsForbidden() and c:CheckUniqueOnField(tp) return c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsType(TYPE_FIELD) and c:IsSetCard(0x109)
and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end end
function c65017789.tftg(e,tp,eg,ep,ev,re,r,rp,chk) function c65017789.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
......
...@@ -34,7 +34,7 @@ function c91299846.cfilter(c,tp) ...@@ -34,7 +34,7 @@ function c91299846.cfilter(c,tp)
and Duel.IsExistingMatchingCard(c91299846.tffilter,tp,LOCATION_DECK,0,1,nil,c,tp) and Duel.IsExistingMatchingCard(c91299846.tffilter,tp,LOCATION_DECK,0,1,nil,c,tp)
end end
function c91299846.tffilter(c,cc,tp) function c91299846.tffilter(c,cc,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x109) return c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsType(TYPE_FIELD) and c:IsSetCard(0x109)
and not c:IsForbidden() and c:CheckUniqueOnField(tp,LOCATION_ONFIELD,cc) and not c:IsForbidden() and c:CheckUniqueOnField(tp,LOCATION_ONFIELD,cc)
end end
function c91299846.tfcost(e,tp,eg,ep,ev,re,r,rp,chk) function c91299846.tfcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -30,7 +30,8 @@ function c92411493.initial_effect(c) ...@@ -30,7 +30,8 @@ function c92411493.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c92411493.tffilter(c,tp) function c92411493.tffilter(c,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x109) and not c:IsForbidden() and c:CheckUniqueOnField(tp) return c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsType(TYPE_FIELD) and c:IsSetCard(0x109)
and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end end
function c92411493.tftg(e,tp,eg,ep,ev,re,r,rp,chk) function c92411493.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
......
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