Commit 60d4525b authored by REIKAI's avatar REIKAI 💬

bug fix

parent 670933ca
Pipeline #22101 passed with stages
in 35 minutes and 45 seconds
...@@ -37,7 +37,7 @@ function cm.initial_effect(c) ...@@ -37,7 +37,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e33) c:RegisterEffect(e33)
end end
function cm.spfilter(c) function cm.spfilter(c)
return c:IsAbleToGraveAsCost() and c:IsSetCard(0x374) and (c:IsType(TYPE_SPELL+TYPE_CONTINUOUS) or c:IsType(TYPE_TRAP)) return c:IsAbleToGraveAsCost() and c:IsSetCard(0x374) and ((c:IsType(TYPE_SPELL) and c:IsType(TYPE_CONTINUOUS)) or c:IsType(TYPE_TRAP))
end end
function cm.splimit(e,se,sp,st) function cm.splimit(e,se,sp,st)
if not StarLight_from_K then return false end if not StarLight_from_K then return false end
......
...@@ -53,6 +53,7 @@ function c66915038.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,6 +53,7 @@ function c66915038.recop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local count=c:GetOverlayCount() local count=c:GetOverlayCount()
if count<=20 then if count<=20 then
if not c:IsType(TYPE_XYZ) then return end
local ct=10 local ct=10
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(Card.IsCanOverlay),tp,LOCATION_GRAVE,LOCATION_GRAVE,nil) local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(Card.IsCanOverlay),tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
......
...@@ -75,7 +75,7 @@ end ...@@ -75,7 +75,7 @@ end
cm.toss_dice=true cm.toss_dice=true
function cm.operation(e,tp) function cm.operation(e,tp)
if not e:GetHandler():IsRelateToEffect(e) or e:GetHandler():IsFacedown() then return false end if not e:GetHandler():IsRelateToEffect(e) or e:GetHandler():IsFacedown() then return false end
local dice_for_it_half=Duel.TossDice(tp,1)/2 local dice_for_it_half=math.ceil(Duel.TossDice(tp,1)/2)
Duel.Hint(HINT_MESSAGE,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_MESSAGE,tp,HINTMSG_XMATERIAL)
local tg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.xfilter2),tp,LOCATION_DECK+LOCATION_SZONE,0,dice_for_it_half,dice_for_it_half,nil) local tg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.xfilter2),tp,LOCATION_DECK+LOCATION_SZONE,0,dice_for_it_half,dice_for_it_half,nil)
if not tg or tg:GetCount()<1 then return end if not tg or tg:GetCount()<1 then return end
...@@ -92,7 +92,7 @@ function cm.operation1(e,tp) ...@@ -92,7 +92,7 @@ function cm.operation1(e,tp)
local tg=Duel.SelectMatchingCard(tp,cm.xfilter,tp,LOCATION_SZONE,0,1,1,nil) local tg=Duel.SelectMatchingCard(tp,cm.xfilter,tp,LOCATION_SZONE,0,1,1,nil)
if not tg or tg:GetCount()<1 then return end if not tg or tg:GetCount()<1 then return end
Duel.Overlay(e:GetHandler(),tg) Duel.Overlay(e:GetHandler(),tg)
local dice_for_it_half=Duel.TossDice(tp,1)/2 local dice_for_it_half=math.ceil(Duel.TossDice(tp,1)/2)
Duel.BreakEffect() Duel.BreakEffect()
local ft=dice_for_it_half local ft=dice_for_it_half
if ft>Duel.GetLocationCount(tp,LOCATION_SZONE) then if ft>Duel.GetLocationCount(tp,LOCATION_SZONE) then
......
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