Commit bc9c8f4e authored by Vury Leo's avatar Vury Leo

fix 黒薔薇の破滅竜

parent 3dd61791
...@@ -56,7 +56,7 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.damop(e,tp,eg,ep,ev,re,r,rp) function s.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,0,id)
Duel.Damage(1-tp,600,REASON_EFFECT) if Duel.Damage(1-tp,600,REASON_EFFECT)>0 then
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
for tc in aux.Next(g) do for tc in aux.Next(g) do
...@@ -67,6 +67,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,6 +67,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(-600) e1:SetValue(-600)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsMainPhase() return Duel.IsMainPhase()
......
...@@ -31,7 +31,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -31,7 +31,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
local rg=Duel.GetTargetsRelateToChain():Filter(aux.NecroValleyFilter(),nil) local rg=Duel.GetTargetsRelateToChain():Filter(aux.NecroValleyFilter(),nil)
if #rg==0 or rg:IsExists(aux.NOT(Card.IsAbleToRemove),1,nil) then return end if #rg==0 then return end
local dg=Duel.GetMatchingGroup(s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil) local dg=Duel.GetMatchingGroup(s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)
if Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)>0 if Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)>0
and dg:GetCount()>0 and Duel.IsPlayerCanDraw(tp,1) and dg:GetCount()>0 and Duel.IsPlayerCanDraw(tp,1)
......
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