Commit 1065ee3b authored by Tachibana's avatar Tachibana

watele

parent f21eb4ac
Pipeline #6822 passed with stages
in 40 minutes and 28 seconds
No preview for this file type
...@@ -50,6 +50,6 @@ end ...@@ -50,6 +50,6 @@ end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) and e:GetHandler():IsLocation(LOCATION_GRAVE) then if e:GetHandler():IsRelateToEffect(e) and e:GetHandler():IsLocation(LOCATION_GRAVE) then
Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT) Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,e:GetHandler())
end end
end end
...@@ -70,7 +70,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,7 +70,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.thfilter(c,tp) function cm.thfilter(c,tp)
if Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 then if Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 then
return c:IsSetCard(0x3fb9) and c:IsAbleToHand() return aux.IsCodeListed(c,16120010) and c:IsAbleToHand()
else else
return (aux.IsCodeListed(c,16120010) or c:IsCode(16120010)) and c:IsAbleToHand() return (aux.IsCodeListed(c,16120010) or c:IsCode(16120010)) and c:IsAbleToHand()
end end
......
...@@ -29,7 +29,7 @@ function cm.filter(c,e,tp,m) ...@@ -29,7 +29,7 @@ function cm.filter(c,e,tp,m)
return false return false
end end
local num=c:GetLevel()+c:GetRank() local num=c:GetLevel()+c:GetRank()
return c:IsCanBeSpecialSummoned(e,b,tp,false,false) and (c:IsLevelAbove(1) or c:IsRankAbove(1)) and m:CheckWithSumEqual(cm.sumfun,num,m:GetCount(),m:GetCount()) and (c:IsLocation(LOCATION_DECK) and Duel.GetMZoneCount(tp,m)>0 return c:IsCanBeSpecialSummoned(e,b,tp,false,true) and (c:IsLevelAbove(1) or c:IsRankAbove(1)) and m:CheckWithSumEqual(cm.sumfun,num,m:GetCount(),m:GetCount()) and (c:IsLocation(LOCATION_DECK) and Duel.GetMZoneCount(tp,m)>0
or c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,m,c)>0) or c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,m,c)>0)
end end
function cm.sumfun(c) function cm.sumfun(c)
...@@ -76,7 +76,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
elseif c:IsType(TYPE_RITUAL) then elseif c:IsType(TYPE_RITUAL) then
b=TYPE_RITUAL b=TYPE_RITUAL
end end
Duel.SpecialSummon(tc,b,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,b,tp,tp,false,true,POS_FACEUP)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end 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