Commit 2f244980 authored by Nemo Ma's avatar Nemo Ma

fix

parent a81d1c18
No preview for this file type
......@@ -7,7 +7,6 @@ function c40009560.initial_effect(c)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetOperation(c40009560.op)
e1:SetCountLimit(1)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
......@@ -16,6 +15,7 @@ function c40009560.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_PHASE+PHASE_STANDBY)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(c40009560.con)
c:RegisterEffect(e3)
--spsummon
......
......@@ -121,18 +121,14 @@ function c79029513.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
ag=e:GetHandler():GetOverlayCount()
e:GetHandler():RemoveOverlayCard(tp,ag,ag,REASON_COST)
e:SetLabel(ag)
end
function c79029513.efop(e,tp,eg,ep,ev,re,r,rp)
local ag=e:GetLabel()
if not ag or ag<=0 then return end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(0,1)
e1:SetValue(aux.TRUE)
e1:SetReset(RESET_PHASE+PHASE_END,ag)
e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetTargetRange(0,LOCATION_ONFIELD+LOCATION_DECK+LOCATION_GRAVE+LOCATION_EXTRA+LOCATION_HAND+LOCATION_REMOVED)
e1:SetTarget(c79029513.actfilter)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,ag)
Duel.RegisterEffect(e1,tp)
end
function c79029513.actfilter(e,c)
......
......@@ -35,7 +35,7 @@ function c79029570.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_DISABLE_SUMMON)
e1:SetProperty(EFFECT_FLAG_IGNORE_RANGE+EFFECT_FLAG_SET_AVAILABLE)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xff1))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xa9f1))
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetReset(RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
......@@ -74,7 +74,7 @@ end
function c79029570.linkop(e,tp,eg,ep,ev,re,r,rp,c,og,lmat,min,max)
end
function c79029570.mattg(e,c)
return c:IsSetCard(0xff1) and not c:IsCode(79029570)
return c:IsSetCard(0xa9f1) and not c:IsCode(79029570)
end
function c79029570.regcon(e,tp,eg,ep,ev,re,r,rp)
return eg:GetFirst():GetSummonType()==SUMMON_TYPE_SPECIAL+1
......
......@@ -66,7 +66,6 @@ function c79029579.datg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,0,1,1,nil):GetFirst()
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,2,tp,0)
end
function c79029579.daop(e,tp,eg,ep,ev,re,r,rp)
local tc1=Duel.GetFirstTarget()
......
......@@ -30,7 +30,7 @@ function c79029580.initial_effect(c)
c:RegisterEffect(e4)
end
function c79029580.spfilter(c,ft)
return c:IsFaceup() and c:IsSetCard(0xff1) and c:IsAbleToHandAsCost()
return c:IsFaceup() and c:IsSetCard(0xa9f1) and c:IsAbleToHandAsCost()
and (ft>0 or c:GetSequence()<5)
end
function c79029580.spcon(e,c)
......
......@@ -43,9 +43,9 @@ function c9910116.gyfilter(c,g)
end
function c9910116.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c9910116.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) then
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c9910116.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c9910116.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c9910116.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)==0 then return end
end
......
......@@ -31,7 +31,7 @@ function c9910230.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c9910230.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
local g=Duel.SelectMatchingCard(tp,c9910230.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c9910230.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
......
......@@ -14,14 +14,14 @@ function c9910460.initial_effect(c)
e1:SetOperation(c9910460.spop)
c:RegisterEffect(e1)
--negate
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DISABLE+CATEGORY_COUNTER)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_CHAIN_SOLVING)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c9910460.negcon)
e3:SetOperation(c9910460.negop)
c:RegisterEffect(e3)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DISABLE+CATEGORY_COUNTER)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_CHAIN_SOLVING)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c9910460.negcon)
e2:SetOperation(c9910460.negop)
c:RegisterEffect(e2)
end
function c9910460.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
......@@ -58,15 +58,15 @@ function c9910460.spop(e,tp,eg,ep,ev,re,r,rp)
end
function c9910460.negcon(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return re:IsActiveType(TYPE_MONSTER) and rc and Duel.IsChainDisablable(ev)
and e:GetHandler():GetFlagEffect(9910460)<=0
return re:IsActiveType(TYPE_MONSTER) and rc and rc:IsControler(1-tp)
and Duel.IsChainDisablable(ev) and e:GetHandler():GetFlagEffect(9910460)<=0
end
function c9910460.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=re:GetHandler()
if not rc:IsCanRemoveCounter(tp,0x1950,1,REASON_EFFECT) then return end
Duel.HintSelection(Group.FromCards(c))
if rc:IsCanRemoveCounter(tp,0x1950,1,REASON_EFFECT)
and Duel.SelectYesNo(tp,aux.Stringid(9910460,1)) then
if Duel.SelectYesNo(tp,aux.Stringid(9910460,1)) then
Duel.Hint(HINT_CARD,0,9910460)
rc:RemoveCounter(tp,0x1950,1,REASON_EFFECT)
if Duel.NegateEffect(ev) and c:IsCanAddCounter(0x1950,1)
......
......@@ -597,4 +597,6 @@
!setname 0xfd06 渊界
!setname 0xfd07 源生
!setname 0xcf1b 魔惧会
!setname 0x9310 圣燧烽
\ No newline at end of file
!setname 0x9310 圣燧烽
!setname 0xa9f1 星壳
!setname 0x2048 CiNO
\ 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