Commit af16190c authored by POLYMER's avatar POLYMER

fix

parent d6ed0533
......@@ -55,11 +55,11 @@ function c19209557.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function c19209557.spfilter(c,e,tp)
return c:IsSetCard(0xb50) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceupEx()
return c:IsSetCard(0xb50) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceupEx() and (c:IsLocation(LOCATION_GRAVE) and Duel.GetMZoneCount(tp)>0 or c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0)
end
function c19209557.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and chkc:IsAbleToRemove() end
if chk==0 then return Duel.IsExistingTarget(c19209557.cfilter,tp,0,LOCATION_GRAVE,1,nil) and Duel.IsExistingMatchingCard(c19209557.spfilter,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetMZoneCount(tp)>0 end
if chk==0 then return Duel.IsExistingTarget(c19209557.cfilter,tp,0,LOCATION_GRAVE,1,nil) and Duel.IsExistingMatchingCard(c19209557.spfilter,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c19209557.cfilter,tp,0,LOCATION_GRAVE,1,2,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,1-tp,LOCATION_GRAVE)
......@@ -67,7 +67,7 @@ function c19209557.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c19209557.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetTargetsRelateToChain()
if #g>0 and Duel.Remove(g,POS_FACEUP,REASON_EFFECT)~=0 and Duel.GetMZoneCount(tp)>0 then
if #g>0 and Duel.Remove(g,POS_FACEUP,REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c19209557.spfilter),tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst()
if sc then
......
......@@ -201,7 +201,16 @@ function c28319225.condition(e,c)
end
function c28319225.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.ConfirmCards(0,c)
if c:IsLocation(LOCATION_DECK) then
local seq=c:GetSequence()
Duel.DisableShuffleCheck()
Duel.MoveSequence(c,SEQ_DECKTOP)
Duel.ConfirmDecktop(tp,1)
Duel.DisableShuffleCheck()
Duel.MoveSequence(c,seq)
else
Duel.ConfirmCards(1-tp,c)
end
Duel.Hint(HINT_CARD,0,28319225)
--activate from hand
local e1=Effect.CreateEffect(c)
......
......@@ -6,10 +6,10 @@ function s.initial_effect(c)
Duel.DisableActionCheck(true)
local tp=0
if Duel.GetFieldGroupCount(0,0,LOCATION_DECK)>0 or Duel.GetFieldGroupCount(0,LOCATION_EXTRA,0)>0 then tp=1 end
Debug.Message(tp)
local ec=Debug.AddCard(id,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
pcall(Duel.Overlay,ec,c)
local _,g=pcall(Card.GetOverlayGroup,ec)
g:AddCard(Duel.CreateToken(1-tp,id))
pcall(Group.Select,g,1-tp,1,1,nil)
Duel.DisableActionCheck(false)
end
......
......@@ -43,7 +43,7 @@ function s.initial_effect(c)
end
function s.recon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==1 and (e:GetHandler():GetFlagEffect(id)>0 or (e:GetCode()~=EVENT_CHAIN_NEGATED)) and Duel.GetFlagEffect(tp,id)==0
return Duel.GetCurrentChain()==1 and (e:GetHandler():GetFlagEffect(id+1)>0 or (e:GetCode()~=EVENT_CHAIN_NEGATED)) and Duel.GetFlagEffect(tp,id+1)==0
end
function s.reop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
--目标丢失
local s,id,o=GetID()
function s.initial_effect(c)
--Activate
--①:让对方指定场上以外的区域1处才能发动。自己失去1000基本分。这个效果在自己基本分小于1000的场合也能发动。
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
......@@ -13,10 +13,10 @@ end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SelectField(1-tp,1,LOCATION_ONFIELD,LOCATION_ONFIELD,0xffffffff)
local s=Duel.SelectField(1-tp,1,LOCATION_ONFIELD,LOCATION_ONFIELD,0xffffffff)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLP(tp)>1000 end
if chk==0 then return true end
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(tp,Duel.GetLP(tp)-1000)
......
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