Commit 06ceaf28 authored by POLYMER's avatar POLYMER

fix

parent 92465b7b
...@@ -191,9 +191,7 @@ function pnflpf.debug(e,tp,eg,ep,ev,re,r,rp) ...@@ -191,9 +191,7 @@ function pnflpf.debug(e,tp,eg,ep,ev,re,r,rp)
end end
end end
-- --
local m=11451851 local cm,m=GetID()
local cm=_G["c"..m]
if not cm then return end
function cm.initial_effect(c) function cm.initial_effect(c)
if not PNFL_PROPHECY_FLIGHT_CHECK then if not PNFL_PROPHECY_FLIGHT_CHECK then
pnfl_prophecy_flight_initial(c) pnfl_prophecy_flight_initial(c)
...@@ -421,10 +419,15 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -421,10 +419,15 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local op=function(e,tp) local op=function(e,tp)
if ct>=3 then e:Reset() return end if ct>=3 then e:Reset() return end
ct=ct+1 ct=ct+1
--e:GetHandler():SetTurnCounter(ct) --Duel.Hint(HINT_CARD,0,m)
Duel.Hint(HINT_CARD,0,m)
local tc=cm.GetCardsInZone(tp,fd) local tc=cm.GetCardsInZone(tp,fd)
if tc then Duel.Destroy(tc,REASON_EFFECT) end if tc then
Duel.Destroy(tc,REASON_EFFECT)
e:GetHandler():SetTurnCounter(ct)
else
Duel.Hint(HINT_ZONE,tp,fd)
e:GetHandler():SetTurnCounter(ct)
end
end end
if Duel.GetCurrentChain()==1 then if Duel.GetCurrentChain()==1 then
op(e,tp) op(e,tp)
......
...@@ -167,6 +167,13 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -167,6 +167,13 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local fd=Duel.SelectField(tp,2,LOCATION_SZONE,0,~0x1f00) local fd=Duel.SelectField(tp,2,LOCATION_SZONE,0,~0x1f00)
for i=0,4 do for i=0,4 do
if fd&(1<<(8+i))>0 then if fd&(1<<(8+i))>0 then
local de=Effect.CreateEffect(c)
de:SetDescription(aux.Stringid(m,i))
de:SetType(EFFECT_TYPE_FIELD)
de:SetCode(EFFECT_FLAG_EFFECT+m+0xffff+i)
de:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
de:SetTargetRange(1,0)
Duel.RegisterEffect(de,tp)
local table={1<<0|1<<28,1<<1|1<<27,1<<2|1<<26,1<<3|1<<25,1<<4|1<<24} local table={1<<0|1<<28,1<<1|1<<27,1<<2|1<<26,1<<3|1<<25,1<<4|1<<24}
for j=0,32 do for j=0,32 do
if (1<<j)&(table[i+1])~=0 then if (1<<j)&(table[i+1])~=0 then
...@@ -253,6 +260,7 @@ function cm.thcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -253,6 +260,7 @@ function cm.thcon2(e,tp,eg,ep,ev,re,r,rp)
if tp==1 then cid=5-i end if tp==1 then cid=5-i end
local cl=cm.column local cl=cm.column
cm.column=cm.column&~(1<<cid) cm.column=cm.column&~(1<<cid)
Duel.ResetFlagEffect(tp,m+0xffff+i)
if cl~=0 and cm.column==0 then if cl~=0 and cm.column==0 then
if SetCardData then if SetCardData then
Duel.Hint(24,0,aux.Stringid(m,8)) Duel.Hint(24,0,aux.Stringid(m,8))
......
...@@ -173,8 +173,8 @@ function c11533716.drtdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -173,8 +173,8 @@ function c11533716.drtdop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
local dg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil,e) local dg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil,e)
if dg:CheckSubGroup(c11533716.tdgck,5,5) and Duel.SelectYesNo(tp,aux.Stringid(11533716,0)) then if dg:CheckSubGroup(c11533716.tdgck,5,5) and Duel.SelectYesNo(tp,aux.Stringid(11533716,0)) then
local sg=g:SelectSubGroup(tp,c11533716.tdgck,false,5,5) local sg=dg:SelectSubGroup(tp,c11533716.tdgck,false,5,5)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
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