Commit a338ea28 authored by Kohana's avatar Kohana Committed by GitHub

fix ライトレイ ディアボロス (#1663)

parent fef8dc47
...@@ -52,6 +52,9 @@ function c30126992.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,6 +52,9 @@ function c30126992.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFacedown() then if tc:IsRelateToEffect(e) and tc:IsFacedown() then
Duel.ConfirmCards(tp,tc) Duel.ConfirmCards(tp,tc)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then
Duel.SendtoDeck(tc,nil,1,REASON_EFFECT)
else
if tc:IsExtraDeckMonster() if tc:IsExtraDeckMonster()
or Duel.SelectOption(tp,aux.Stringid(30126992,1),aux.Stringid(30126992,2))==0 then or Duel.SelectOption(tp,aux.Stringid(30126992,1),aux.Stringid(30126992,2))==0 then
Duel.SendtoDeck(tc,nil,0,REASON_EFFECT) Duel.SendtoDeck(tc,nil,0,REASON_EFFECT)
...@@ -59,4 +62,5 @@ function c30126992.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,4 +62,5 @@ function c30126992.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,1,REASON_EFFECT) Duel.SendtoDeck(tc,nil,1,REASON_EFFECT)
end end
end 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