Commit d1bee252 authored by mercury233's avatar mercury233

fix

parent 1c0074a7
...@@ -28,7 +28,7 @@ function c100336006.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c100336006.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c100336006.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c100336006.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
local rec=math.ceil(e:GetHandler():GetDefense()/2) local rec=math.ceil(e:GetHandler():GetDefense()/2)
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
......
...@@ -15,7 +15,7 @@ function c100336034.initial_effect(c) ...@@ -15,7 +15,7 @@ function c100336034.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetHintTiming(0,TIMING_BATTLE_START+TIMING_BATTLE_END) e2:SetHintTiming(TIMING_DAMAGE_STEP)
e2:SetCountLimit(1,100336034) e2:SetCountLimit(1,100336034)
e2:SetCondition(c100336034.atkcon) e2:SetCondition(c100336034.atkcon)
e2:SetCost(c100336034.atkcost) e2:SetCost(c100336034.atkcost)
......
...@@ -42,7 +42,7 @@ function c101010003.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,7 +42,7 @@ function c101010003.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c101010003.costfilter,1,1,REASON_COST,c) Duel.DiscardHand(tp,c101010003.costfilter,1,1,REASON_COST,c)
end end
function c101010003.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101010003.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -119,7 +119,7 @@ function c101010041.spfilter2(c,e,tp) ...@@ -119,7 +119,7 @@ function c101010041.spfilter2(c,e,tp)
end end
function c101010041.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c101010041.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c101010041.spfilter2),tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c101010041.spfilter2,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
function c101010041.spop2(e,tp,eg,ep,ev,re,r,rp) function c101010041.spop2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -22,7 +22,7 @@ function c101010043.initial_effect(c) ...@@ -22,7 +22,7 @@ function c101010043.initial_effect(c)
--tohand --tohand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101010043,1)) e2:SetDescription(aux.Stringid(101010043,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED) e2:SetCode(EVENT_DESTROYED)
......
...@@ -19,7 +19,7 @@ function c101010044.initial_effect(c) ...@@ -19,7 +19,7 @@ function c101010044.initial_effect(c)
--tohand --tohand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101010044,1)) e2:SetDescription(aux.Stringid(101010044,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED) e2:SetCode(EVENT_DESTROYED)
......
...@@ -46,11 +46,11 @@ end ...@@ -46,11 +46,11 @@ end
function c101010045.lcheck(g) function c101010045.lcheck(g)
return g:IsExists(Card.IsLinkType,1,nil,TYPE_LINK) return g:IsExists(Card.IsLinkType,1,nil,TYPE_LINK)
end end
function c101010045.cfilter(c,re,tp) function c101010045.cfilter(c)
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsReason(REASON_EFFECT) and not re:GetHandler():IsCode(101010045) return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsReason(REASON_EFFECT)
end end
function c101010045.descon1(e,tp,eg,ep,ev,re,r,rp) function c101010045.descon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c101010045.cfilter,1,nil,re,tp) return not re:GetHandler():IsCode(101010045) and eg:IsExists(c101010045.cfilter,1,nil)
end end
function c101010045.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010045.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
......
...@@ -31,7 +31,7 @@ function c101010053.initial_effect(c) ...@@ -31,7 +31,7 @@ function c101010053.initial_effect(c)
e4:SetCategory(CATEGORY_EQUIP) e4:SetCategory(CATEGORY_EQUIP)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_SPSUMMON_SUCCESS) e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_FZONE)
e4:SetCondition(c101010053.eqcon) e4:SetCondition(c101010053.eqcon)
e4:SetTarget(c101010053.eqtg) e4:SetTarget(c101010053.eqtg)
e4:SetOperation(c101010053.eqop) e4:SetOperation(c101010053.eqop)
......
...@@ -27,17 +27,18 @@ function c101010069.initial_effect(c) ...@@ -27,17 +27,18 @@ function c101010069.initial_effect(c)
e2:SetOperation(c101010069.spop) e2:SetOperation(c101010069.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c101010069.desfilter(c,tp) function c101010069.desfilter(c,tp,ec)
return c:IsFaceup() and c:IsSetCard(0x230) return c:IsFaceup() and c:IsSetCard(0x230)
and Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) and Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,Group.FromCards(c,ec))
end end
function c101010069.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010069.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c101010069.desfilter,tp,LOCATION_MZONE,0,1,nil,tp) end if chk==0 then return Duel.IsExistingTarget(c101010069.desfilter,tp,LOCATION_MZONE,0,1,nil,tp,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g1=Duel.SelectTarget(tp,c101010069.desfilter,tp,LOCATION_MZONE,0,1,1,nil,tp) local g1=Duel.SelectTarget(tp,c101010069.desfilter,tp,LOCATION_MZONE,0,1,1,nil,tp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g2=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,g1:GetFirst()) local g2=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,Group.FromCards(g1:GetFirst(),c))
g1:Merge(g2) g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0)
end end
......
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