Commit b817dc7a authored by songtongtong's avatar songtongtong

bug fix

parent 4000bd4f
Pipeline #22660 passed with stages
in 30 minutes and 51 seconds
...@@ -92,7 +92,7 @@ end ...@@ -92,7 +92,7 @@ end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:IsSetCard(0xccb) return c:IsSetCard(0xccb)
and c:IsType(TYPE_MONSTER) and c:IsType(TYPE_MONSTER)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) and c:IsFaceup()
and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -159,7 +159,7 @@ function cm.spfilter(c,e,tp,lv) ...@@ -159,7 +159,7 @@ function cm.spfilter(c,e,tp,lv)
return c:IsLevelBelow(lv) and c:IsSetCard(0xccb) return c:IsLevelBelow(lv) and c:IsSetCard(0xccb)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and (c:IsLocation(LOCATION_DECK) and Duel.GetMZoneCount(tp)>0 and (c:IsLocation(LOCATION_DECK) and Duel.GetMZoneCount(tp)>0
or (c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0) and c:IsFaceup()) or (c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil,e,tp) 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