Commit 1a625178 authored by mercury233's avatar mercury233 Committed by GitHub

fix Sacred Scrolls of the Gizmek Legend (#3004)

parent 6fe8f5db
...@@ -39,13 +39,13 @@ function c24793135.initial_effect(c) ...@@ -39,13 +39,13 @@ function c24793135.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c24793135.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c24793135.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=3 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=3 and Duel.IsPlayerCanRemove(tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK)
end end
function c24793135.thfilter(c) function c24793135.thfilter(c)
return aux.AtkEqualsDef(c) and c:IsRace(RACE_MACHINE) and c:IsAbleToHand() return aux.AtkEqualsDef(c) and c:IsRace(RACE_MACHINE) and c:IsAbleToHand()
end end
function c24793135.thop(e,tp,eg,ep,ev,re,r,rp) function c24793135.thop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanRemove(tp) then return end
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return end if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return end
Duel.ConfirmDecktop(tp,3) Duel.ConfirmDecktop(tp,3)
local g=Duel.GetDecktopGroup(tp,3) local g=Duel.GetDecktopGroup(tp,3)
......
...@@ -72,6 +72,7 @@ function c94392192.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -72,6 +72,7 @@ function c94392192.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_DECK)
end end
function c94392192.rmop(e,tp,eg,ep,ev,re,r,rp) function c94392192.rmop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanRemove(tp) then return end
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
if ct>5 then ct=5 end if ct>5 then ct=5 end
if ct>1 then if ct>1 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