Commit 6a13c506 authored by mercury233's avatar mercury233

fix

parent 86608bf3
......@@ -36,7 +36,7 @@ function c101006014.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end
function c101006014.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c101006014.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
......
......@@ -36,7 +36,7 @@ function c101006016.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c101006016.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c101006016.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
......
......@@ -28,7 +28,7 @@ function c101006045.initial_effect(c)
e3:SetCondition(c101006045.tdcon1)
e3:SetTarget(c101006045.tdtg)
e3:SetOperation(c101006045.tdop)
c:RegisterEffect(e2)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
......
......@@ -28,6 +28,7 @@ function c101006046.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(c101006046.seqcon)
e3:SetTarget(c101006046.seqtg)
e3:SetOperation(c101006046.seqop)
......@@ -70,9 +71,11 @@ function c101006046.seqop(e,tp,eg,ep,ev,re,r,rp)
p1=LOCATION_MZONE
p2=0
else
p2=LOCATION_MZONE
p1=0
p2=LOCATION_MZONE
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
Duel.MoveSequence(tc,math.log(Duel.SelectDisableField(tp,1,p1,p2,0),2))
local seq=math.log(Duel.SelectDisableField(tp,1,p1,p2,0),2)
if tc:IsControler(1-tp) then seq=seq-16 end
Duel.MoveSequence(tc,seq)
end
......@@ -17,7 +17,7 @@ function c101006068.initial_effect(c)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCondition(c101006068.atkcon)
e2:SetValue(500)
e2:SetValue(-500)
c:RegisterEffect(e2)
--activate Necrovalley
local e3=Effect.CreateEffect(c)
......
......@@ -41,11 +41,10 @@ function c101006074.activate(e,tp,eg,ep,ev,re,r,rp)
end
function c101006074.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:GetSummonType()~=SUMMON_TYPE_SPECIAL+1 then return false end
local lg1=Duel.GetLinkedGroup(tp,1,1)
local lg2=Duel.GetLinkedGroup(1-tp,1,1)
lg1:Merge(lg2)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL+1
and lg1 and lg1:IsContains(c)
return (lg1 and lg1:IsContains(c)) or (lg2 and lg2:IsContains(c))
end
function c101006074.filter(c)
return c:IsSetCard(0xfe) and c:IsAbleToHand()
......
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