Commit 94d88f09 authored by mercury233's avatar mercury233 Committed by GitHub

update CATEGORY_TOHAND with 0 count (#1537)

parent fa5216a3
...@@ -3,7 +3,7 @@ function c12571621.initial_effect(c) ...@@ -3,7 +3,7 @@ function c12571621.initial_effect(c)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12571621,0)) e1:SetDescription(aux.Stringid(12571621,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE+CATEGORY_TOHAND) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE+CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
...@@ -27,7 +27,6 @@ function c12571621.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -27,7 +27,6 @@ function c12571621.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c12571621.tfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp) local g=Duel.SelectTarget(tp,c12571621.tfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c12571621.spop(e,tp,eg,ep,ev,re,r,rp) function c12571621.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function c12931061.initial_effect(c) function c12931061.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCountLimit(1,12931061+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,12931061+EFFECT_COUNT_CODE_OATH)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
...@@ -21,7 +21,6 @@ function c12931061.initial_effect(c) ...@@ -21,7 +21,6 @@ function c12931061.initial_effect(c)
end end
function c12931061.target(e,tp,eg,ep,ev,re,r,rp,chk) function c12931061.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK+LOCATION_GRAVE)
end end
function c12931061.thfilter(c) function c12931061.thfilter(c)
if not c:IsAbleToHand() then return false end if not c:IsAbleToHand() then return false end
......
...@@ -59,9 +59,13 @@ function c18189187.thfilter(c) ...@@ -59,9 +59,13 @@ function c18189187.thfilter(c)
end end
function c18189187.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c18189187.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,1-tp,LOCATION_ONFIELD) if Duel.IsEnvironment(74665651,PLAYER_ALL,LOCATION_FZONE)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,1-tp,LOCATION_ONFIELD)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,0,tp,LOCATION_HAND) end
if Duel.IsEnvironment(1050355,PLAYER_ALL,LOCATION_FZONE) then
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,1,tp,0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND)
end
end end
function c18189187.thop(e,tp,eg,ep,ev,re,r,rp) function c18189187.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsEnvironment(74665651,PLAYER_ALL,LOCATION_FZONE) if Duel.IsEnvironment(74665651,PLAYER_ALL,LOCATION_FZONE)
......
...@@ -67,7 +67,6 @@ function c18832779.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -67,7 +67,6 @@ function c18832779.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c18832779.eqfilter(c) function c18832779.eqfilter(c)
return c:IsFaceup() and c:IsSetCard(0x13f) return c:IsFaceup() and c:IsSetCard(0x13f)
......
...@@ -59,7 +59,6 @@ function c19324993.thfilter(c,fc) ...@@ -59,7 +59,6 @@ function c19324993.thfilter(c,fc)
end end
function c19324993.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c19324993.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c19324993.ffilter,tp,LOCATION_EXTRA,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c19324993.ffilter,tp,LOCATION_EXTRA,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c19324993.thop(e,tp,eg,ep,ev,re,r,rp) function c19324993.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
......
...@@ -58,7 +58,6 @@ function c20248754.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -58,7 +58,6 @@ function c20248754.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c20248754.rmfilter,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,c20248754.rmfilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c20248754.thfilter(c) function c20248754.thfilter(c)
return c:IsSetCard(0x13f) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x13f) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
...@@ -39,7 +39,7 @@ function c21984400.thfilter(c) ...@@ -39,7 +39,7 @@ function c21984400.thfilter(c)
end end
function c21984400.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c21984400.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c21984400.thfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c21984400.thfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_MZONE)
end end
function c21984400.thop(e,tp,eg,ep,ev,re,r,rp) function c21984400.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
......
...@@ -34,7 +34,6 @@ function c3040496.thfilter(c) ...@@ -34,7 +34,6 @@ function c3040496.thfilter(c)
end end
function c3040496.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c3040496.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,5) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,5) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c3040496.thop(e,tp,eg,ep,ev,re,r,rp) function c3040496.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerCanDiscardDeck(tp,5) then if Duel.IsPlayerCanDiscardDeck(tp,5) then
......
...@@ -16,7 +16,7 @@ function c37021315.initial_effect(c) ...@@ -16,7 +16,7 @@ function c37021315.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(37021315,0)) e3:SetDescription(aux.Stringid(37021315,0))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND) e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_GRAVE_ACTION)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_PHASE+PHASE_END) e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetRange(LOCATION_GRAVE) e3:SetRange(LOCATION_GRAVE)
...@@ -43,7 +43,6 @@ function c37021315.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,7 +43,6 @@ function c37021315.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_GRAVE)
end end
function c37021315.cfilter(c) function c37021315.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsCode(37021315) return c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsCode(37021315)
......
...@@ -30,7 +30,6 @@ function c47674738.initial_effect(c) ...@@ -30,7 +30,6 @@ function c47674738.initial_effect(c)
end end
function c47674738.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c47674738.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c47674738.thfilter(c) function c47674738.thfilter(c)
return c:IsSetCard(0x140) and c:IsAbleToHand() return c:IsSetCard(0x140) and c:IsAbleToHand()
......
...@@ -30,7 +30,6 @@ function c49088914.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -30,7 +30,6 @@ function c49088914.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c49088914.tfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp) local g=Duel.SelectTarget(tp,c49088914.tfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c49088914.spop(e,tp,eg,ep,ev,re,r,rp) function c49088914.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -45,7 +45,7 @@ function c53503015.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -45,7 +45,7 @@ function c53503015.target(e,tp,eg,ep,ev,re,r,rp,chk)
else else
e:SetLabel(2) e:SetLabel(2)
e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
end end
function c53503015.operation(e,tp,eg,ep,ev,re,r,rp) function c53503015.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -66,7 +66,6 @@ end ...@@ -66,7 +66,6 @@ end
function c84425220.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c84425220.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,false) end if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c84425220.thfilter(c) function c84425220.thfilter(c)
return c:IsCode(49306994) and c:IsAbleToHand() return c:IsCode(49306994) and c:IsAbleToHand()
......
...@@ -16,7 +16,6 @@ function c93078761.filter(c) ...@@ -16,7 +16,6 @@ function c93078761.filter(c)
end end
function c93078761.target(e,tp,eg,ep,ev,re,r,rp,chk) function c93078761.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c93078761.activate(e,tp,eg,ep,ev,re,r,rp) function c93078761.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -64,7 +64,6 @@ function c94253655.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -64,7 +64,6 @@ function c94253655.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c94253655.rmfilter,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,c94253655.rmfilter,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c94253655.thfilter(c) function c94253655.thfilter(c)
return c:IsSetCard(0x13f) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x13f) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
...@@ -29,7 +29,6 @@ function c9464441.initial_effect(c) ...@@ -29,7 +29,6 @@ function c9464441.initial_effect(c)
end end
function c9464441.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c9464441.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4 end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,1-tp,LOCATION_ONFIELD)
end end
function c9464441.thop(e,tp,eg,ep,ev,re,r,rp) function c9464441.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<=4 then return end if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<=4 then return end
......
...@@ -65,7 +65,6 @@ function c96026108.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,7 +65,6 @@ function c96026108.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
e:SetLabel(0) e:SetLabel(0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c96026108.thfilter(c) function c96026108.thfilter(c)
return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_SPELL) and c:IsAbleToHand() return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
......
...@@ -65,7 +65,6 @@ function c97148796.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,7 +65,6 @@ function c97148796.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
e:SetLabel(0) e:SetLabel(0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c97148796.thfilter(c) function c97148796.thfilter(c)
return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
...@@ -15,7 +15,6 @@ end ...@@ -15,7 +15,6 @@ end
function c99927991.target(e,tp,eg,ep,ev,re,r,rp,chk) function c99927991.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c99927991.filter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(c99927991.filter,tp,LOCATION_MZONE,0,nil)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4+g:GetCount() end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>4+g:GetCount() end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,0,tp,LOCATION_DECK)
end end
function c99927991.thfilter(c,lv) function c99927991.thfilter(c,lv)
return c:IsRace(RACE_ROCK) and c:IsLevelBelow(lv) and c:IsAbleToHand() return c:IsRace(RACE_ROCK) and c:IsLevelBelow(lv) and c:IsAbleToHand()
......
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