Commit ffb23130 authored by POLYMER's avatar POLYMER

fix

parent 2fe1fd25
......@@ -2,7 +2,7 @@
pnflpf=pnflpf or {}
function pnfl_prophecy_flight_initial(c)
PNFL_PROPHECY_FLIGHT_CHECK=true
PNFL_PROPHECY_FLIGHT_DEBUG=true
PNFL_PROPHECY_FLIGHT_DEBUG=false
PNFL_PROPHECY_FLIGHT_OPERATION_PERMIT=true
PNFL_PROPHECY_FLIGHT_TACTIC_VIEW=false
PNFL_PROPHECY_FLIGHT_STONE_HAIL=false
......@@ -60,7 +60,6 @@ function pnflpf.chkval(e,te)
local prop=0
if PNFL_PROPHECY_FLIGHT_STONE_HAIL then prop=EFFECT_FLAG_CLIENT_HINT end
e:GetHandler():RegisterFlagEffect(11451854,RESET_EVENT+RESETS_STANDARD,prop,1,0,aux.Stringid(11451854,2))
if PNFL_PROPHECY_FLIGHT_DEBUG then Debug.Message("influence"..e:GetHandler():GetCode()) end
end
return false
end
......@@ -131,7 +130,7 @@ function cm.initial_effect(c)
e3:SetDescription(aux.Stringid(m,3))
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(11451851)
e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
--e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e3:SetRange(LOCATION_DECK)
e3:SetCondition(function(e) return e:GetHandler():IsFaceup() end)
c:RegisterEffect(e3)
......@@ -172,8 +171,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.setfilter,tp,LOCATION_DECK,0,1,1,nil)
if #g>0 then Duel.SSet(tp,g) end
if c:IsRelateToEffect(e) then
local res=Duel.TossCoin(tp,1) res=1
if Duel.SendtoDeck(c,nil,0,REASON_EFFECT) and c:IsLocation(LOCATION_DECK) and res==1 then
local res=Duel.TossCoin(tp,1)
if PNFL_PROPHECY_FLIGHT_DEBUG then res=1 end
if c:IsRelateToEffect(e) and Duel.SendtoDeck(c,nil,0,REASON_EFFECT) and c:IsLocation(LOCATION_DECK) and res==1 then
Duel.ShuffleDeck(c:GetControler())
c:ReverseInDeck()
end
......@@ -244,7 +244,7 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
elseif tg:IsExists(cm.labseqfilter,1,nil,ct) then
if PNFL_PROPHECY_FLIGHT_DEBUG then Debug.Message("move"..c:GetCode()) end
for i=#tg,1,-1 do
local tc=tg:Filter(cm.labfilter,nil,ct-i):GetFirst()
local tc=tg:Filter(cm.labfilter,nil,i):GetFirst()
Duel.MoveSequence(tc,0)
tc:ReverseInDeck()
end
......
......@@ -34,7 +34,7 @@ function cm.initial_effect(c)
e3:SetDescription(aux.Stringid(m,3))
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(11451851)
e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
--e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e3:SetRange(LOCATION_DECK)
e3:SetCondition(function(e) return e:GetHandler():IsFaceup() end)
c:RegisterEffect(e3)
......@@ -74,8 +74,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(tc,tp,REASON_EFFECT)
end
if c:IsRelateToEffect(e) then
local res=Duel.TossCoin(tp,1) res=1
if Duel.SendtoDeck(c,nil,0,REASON_EFFECT) and c:IsLocation(LOCATION_DECK) and res==1 then
local res=Duel.TossCoin(tp,1)
if PNFL_PROPHECY_FLIGHT_DEBUG then res=1 end
if c:IsRelateToEffect(e) and Duel.SendtoDeck(c,nil,0,REASON_EFFECT) and c:IsLocation(LOCATION_DECK) and res==1 then
Duel.ShuffleDeck(c:GetControler())
c:ReverseInDeck()
end
......@@ -146,7 +147,7 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
elseif tg:IsExists(cm.labseqfilter,1,nil,ct) then
if PNFL_PROPHECY_FLIGHT_DEBUG then Debug.Message("move"..c:GetCode()) end
for i=#tg,1,-1 do
local tc=tg:Filter(cm.labfilter,nil,ct-i):GetFirst()
local tc=tg:Filter(cm.labfilter,nil,i):GetFirst()
Duel.MoveSequence(tc,0)
tc:ReverseInDeck()
end
......@@ -210,8 +211,10 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if bg and #bg>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
bc=bg:Select(tp,0,1,nil):GetFirst()
Duel.HintSelection(Group.FromCards(bc))
rg:AddCard(bc)
if bc then
Duel.HintSelection(Group.FromCards(bc))
rg:AddCard(bc)
end
end
end
for tc in aux.Next(rg) do
......
......@@ -32,7 +32,7 @@ function cm.initial_effect(c)
e3:SetDescription(aux.Stringid(m,3))
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(11451851)
e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
--e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e3:SetRange(LOCATION_DECK)
e3:SetCondition(function(e) return e:GetHandler():IsFaceup() end)
c:RegisterEffect(e3)
......@@ -93,8 +93,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
if c:IsRelateToEffect(e) then
local res=Duel.TossCoin(tp,1) res=1
if Duel.SendtoDeck(c,nil,0,REASON_EFFECT) and c:IsLocation(LOCATION_DECK) and res==1 then
local res=Duel.TossCoin(tp,1)
if PNFL_PROPHECY_FLIGHT_DEBUG then res=1 end
if c:IsRelateToEffect(e) and Duel.SendtoDeck(c,nil,0,REASON_EFFECT) and c:IsLocation(LOCATION_DECK) and res==1 then
Duel.ShuffleDeck(c:GetControler())
c:ReverseInDeck()
end
......
......@@ -32,7 +32,7 @@ function cm.initial_effect(c)
e3:SetDescription(aux.Stringid(m,3))
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(11451851)
e3:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SET_AVAILABLE)
--e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e3:SetRange(LOCATION_DECK)
e3:SetCondition(function(e) return e:GetHandler():IsFaceup() end)
c:RegisterEffect(e3)
......@@ -80,8 +80,9 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
if c:IsRelateToEffect(e) then
local res=Duel.TossCoin(tp,1) res=1
if Duel.SendtoDeck(c,nil,0,REASON_EFFECT) and c:IsLocation(LOCATION_DECK) and res==1 then
local res=Duel.TossCoin(tp,1)
if PNFL_PROPHECY_FLIGHT_DEBUG then res=1 end
if c:IsRelateToEffect(e) and Duel.SendtoDeck(c,nil,0,REASON_EFFECT) and c:IsLocation(LOCATION_DECK) and res==1 then
Duel.ShuffleDeck(c:GetControler())
c:ReverseInDeck()
end
......
......@@ -29,8 +29,7 @@ end
function c13015710.tdrcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
Duel.ConfirmCards(1-tp,e:GetHandler())
Duel.ShuffleHand(tp)
end
function c13015710.thfil(c)
return c:IsAbleToHand() and c:IsType(TYPE_MONSTER) and c:IsSetCard(0xe01) and not c:IsCode(13015710)
......@@ -52,7 +51,7 @@ function c13015710.tdrop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
local dg=Duel.SelectMatchingCard(tp,function(c) return c:IsAbleToDeck() and c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) end,tp,LOCATION_REMOVED,LOCATION_REMOVED,1,1,nil)
if Duel.SendtoDeck(dg,nil,2,REASON_EFFECT)~=0 then
Duel.Draw(tp,1,REASON_EFFECT)
Duel.Draw(tp,1,REASON_EFFECT)
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -27,8 +27,7 @@ function c13015711.initial_effect(c)
end
function c13015711.tdrcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
Duel.ConfirmCards(1-tp,e:GetHandler())
Duel.ShuffleHand(tp)
end
function c13015711.tdrtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
......@@ -50,8 +50,7 @@ local lv=c:GetLevel()
function c13015715.tdrcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
Duel.ConfirmCards(1-tp,e:GetHandler())
Duel.ShuffleHand(tp)
end
function c13015715.tdrtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) or Duel.IsExistingMatchingCard(function(c) return c:IsFaceup() and c:IsCanChangePosition() end,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) or Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) end
......
......@@ -28,9 +28,6 @@ end
function c13015724.tdrcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
Duel.ConfirmCards(1-tp,e:GetHandler())
Duel.ShuffleHand(tp)
end
function c13015724.setfil(c)
return c:IsSSetable() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0xe01)
......
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