Commit 13d250f3 authored by POLYMER's avatar POLYMER

fix

parent 9f9cbd0d
......@@ -8,8 +8,8 @@ function pnfl_prophecy_flight_initial(c)
pnflpf[0]=0
pnflpf[1]=0
pnflpf.coinsequence={}
_TossCoin=Duel.TossCoin
_SetCoinResult=Duel.SetCoinResult
local _TossCoin=Duel.TossCoin
local _SetCoinResult=Duel.SetCoinResult
function Duel.SetCoinResult(...)
local ct0=#pnflpf.coinsequence
local res0={Duel.GetCoinResult()}
......@@ -428,6 +428,11 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.GetCurrentChain()==1 then op(e,tp) end
e:GetHandler():ResetFlagEffect(11451862)
if Card.SetCardData then
Duel.Hint(24,0,aux.Stringid(11451862,2))
else
Debug.Message("「急袭」任务完成!")
end
local e6=Effect.CreateEffect(e:GetHandler())
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e6:SetCode(EVENT_CHAIN_SOLVED)
......
......@@ -62,6 +62,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e6)
if not PNFL_INFLUENCED_CHECK then
PNFL_INFLUENCED_CHECK=true
PNFL_INFLUENCED_HINT=true
--card influenced by effect
local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -11,8 +11,8 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(TIMING_END_PHASE+TIMING_STANDBY_PHASE)
--e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetHintTiming(TIMING_END_PHASE+TIMING_STANDBY_PHASE+TIMING_DRAW_PHASE+TIMING_BATTLE_END,TIMING_END_PHASE+TIMING_STANDBY_PHASE+TIMING_DRAW_PHASE+TIMING_BATTLE_END+TIMING_MAIN_END)
e1:SetCondition(function(e,tp) return (Duel.GetCurrentPhase()~=PHASE_MAIN1 and Duel.GetCurrentPhase()~=PHASE_MAIN2) or Duel.GetTurnPlayer()==1-tp end)
e1:SetTarget(cm.thtg)
e1:SetOperation(cm.thop)
......@@ -36,6 +36,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
if not PNFL_ETARGET_CHECK then
PNFL_ETARGET_CHECK=true
PNFL_ETARGET_HINT=true
local ge3=Effect.CreateEffect(c)
ge3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge3:SetCode(EVENT_BECOME_TARGET)
......@@ -84,7 +85,10 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0):Filter(cm.seqfilter,nil)
if chkc then return chkc:IsLocation(0x3c) end
if chk==0 then return Duel.IsExistingTarget(cm.tgfilter,tp,0x3c,0x3c,1,c,e) and #g==3 and g:FilterCount(Card.IsFacedown,nil)>0 end
if chk==0 then return Duel.IsExistingTarget(cm.tgfilter,tp,0x3c,0x3c,1,c,e) and #g==3 and g:FilterCount(Card.IsFacedown,nil)>0 and Duel.GetFlagEffect(m)==0 end
local ph=Duel.GetCurrentPhase()
if ph>PHASE_MAIN1 and ph<PHASE_MAIN2 then ph=PHASE_BATTLE end
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+ph,EFFECT_FLAG_OATH,1)
if not PNFL_ETARGET_HINT then
PNFL_ETARGET_HINT=true
local shg=Duel.GetMatchingGroup(cm.shfilter,tp,0x3c,0x3c,nil)
......
......@@ -214,11 +214,10 @@ function cm.thop2(e,tp,eg,ep,ev,re,r,rp)
g:ForEach(Card.RegisterFlagEffect,m-10,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET,EFFECT_FLAG_CLIENT_HINT,1,aux.Stringid(m,10))
for tc in aux.Next(g) do
local ge2=Effect.CreateEffect(c)
ge2:SetDescription(aux.Stringid(m,10))
ge2:SetType(EFFECT_TYPE_SINGLE)
ge2:SetCode(EFFECT_IMMUNE_EFFECT)
ge2:SetRange(0x1c)
ge2:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SET_AVAILABLE)
ge2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
ge2:SetLabelObject(g)
ge2:SetValue(cm.chkval)
ge2:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET)
......
......@@ -23,7 +23,7 @@ function cm.initial_effect(c)
--special summon
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,3))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CHAINING)
e3:SetRange(LOCATION_HAND+LOCATION_MZONE)
......
......@@ -4,7 +4,6 @@ local cm=_G["c"..m]
function cm.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,22348358+EFFECT_COUNT_CODE_OATH)
......
......@@ -10,6 +10,7 @@ function cm.initial_effect(c)
e5:SetRange(LOCATION_MZONE)
e5:SetCode(EVENT_FREE_CHAIN)
e5:SetCost(cm.dscost)
e5:SetTarget(cm.dstg)
e5:SetOperation(cm.dsop)
e5:SetCountLimit(1,m)
c:RegisterEffect(e5)
......@@ -29,6 +30,11 @@ function cm.dscost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST,nil)
end
function cm.dstg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.NegateMonsterFilter,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(aux.NegateMonsterFilter,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,g:GetCount(),0,0)
end
function cm.dsop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.NegateMonsterFilter,tp,0,LOCATION_MZONE,nil)
local tc=g:GetFirst()
......
--重兵装型女子高中生・Arche
function c67670311.initial_effect(c)
--link summon
aux.AddLinkProcedure(c,c67670311.mfilter,2)
aux.AddLinkProcedure(c,c67670311.mfilter,3)
c:EnableReviveLimit()
--cannot be material
local e1=Effect.CreateEffect(c)
......
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