Commit 662d806e authored by wind2009's avatar wind2009

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

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