Commit 662d806e authored by wind2009's avatar wind2009

Update PHNI-EN text, Fix 仇すれば通図

parent 385891d2
Pipeline #25128 passed with stages
in 1 minute and 8 seconds
No preview for this file type
...@@ -34,7 +34,7 @@ end ...@@ -34,7 +34,7 @@ end
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)
if chk==0 then if chk==0 then
if ct==0 or Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return false end if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return false end
local g=Duel.GetDecktopGroup(tp,ct) local g=Duel.GetDecktopGroup(tp,ct)
local result=g:FilterCount(Card.IsAbleToHand,nil)>0 local result=g:FilterCount(Card.IsAbleToHand,nil)>0
return result return result
...@@ -43,14 +43,14 @@ function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,14 +43,14 @@ function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK)
end end
function s.drop(e,tp,eg,ep,ev,re,r,rp) function s.drop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local dt=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0) local ct=Duel.GetFieldGroupCount(p,0,LOCATION_ONFIELD)
local dt=Duel.GetFieldGroupCount(p,LOCATION_DECK,0)
ct=math.min(ct,dt) ct=math.min(ct,dt)
if ct==0 then return end if ct==0 then return end
local t={} local t={}
for i=1,ct do t[i]=i end for i=1,ct do t[i]=i end
local ac=Duel.AnnounceNumber(tp,table.unpack(t)) local ac=Duel.AnnounceNumber(p,table.unpack(t))
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
Duel.ConfirmDecktop(p,ac) Duel.ConfirmDecktop(p,ac)
local g=Duel.GetDecktopGroup(p,ac) local g=Duel.GetDecktopGroup(p,ac)
if #g>0 then if #g>0 then
...@@ -83,9 +83,9 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,9 +83,9 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if ac>0 then if ac>0 then
Duel.SortDecktop(tp,tp,ac) Duel.SortDecktop(p,p,ac)
for i=1,ac do for i=1,ac do
local mg=Duel.GetDecktopGroup(tp,1) local mg=Duel.GetDecktopGroup(p,1)
Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM) Duel.MoveSequence(mg:GetFirst(),SEQ_DECKBOTTOM)
end end
end end
...@@ -101,7 +101,7 @@ end ...@@ -101,7 +101,7 @@ end
function s.tdop(e,tp,eg,ep,ev,re,r,rp) function s.tdop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
if aux.NecroValleyNegateCheck(g) then return end if aux.NecroValleyNegateCheck(g) then return end
if #g>0 then if g:GetCount()>0 then
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end end
end end
\ No newline at end of file
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