Commit 465d30db authored by mercury233's avatar mercury233

fix

parent b128f90e
...@@ -63,7 +63,7 @@ function c101010005.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function c101010005.thcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsLocation(LOCATION_GRAVE) and r==REASON_LINK return c:IsLocation(LOCATION_GRAVE) and r==REASON_LINK
end end
function c101010005.thfilter(c) function c101010005.thfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) return c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToHand()
end end
function c101010005.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010005.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c101010005.thfilter(chkc) and chkc~=e:GetHandler() end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c101010005.thfilter(chkc) and chkc~=e:GetHandler() end
...@@ -73,7 +73,7 @@ function c101010005.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -73,7 +73,7 @@ function c101010005.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c101010005.thfilter2(c) function c101010005.thfilter2(c)
return c:IsType(TYPE_MONSTER) return c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c101010005.thop(e,tp,eg,ep,ev,re,r,rp) function c101010005.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -34,5 +34,5 @@ function c101010007.immcon(e) ...@@ -34,5 +34,5 @@ function c101010007.immcon(e)
return Duel.IsExistingMatchingCard(c101010007.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c101010007.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end end
function c101010007.efilter(e,re) function c101010007.efilter(e,re)
return re:GetOwnerPlayer()~=e:GetHandlerPlayer() and re:IsActiveType(TYPE_MONSTER) and re:IsActivated() return re:GetOwnerPlayer()~=e:GetHandlerPlayer() and re:IsActiveType(TYPE_MONSTER) and re:IsActivated() and re:GetHandler():IsLinkBelow(3)
end end
...@@ -7,7 +7,7 @@ function c101010011.initial_effect(c) ...@@ -7,7 +7,7 @@ function c101010011.initial_effect(c)
e1:SetDescription(aux.Stringid(101010011,0)) e1:SetDescription(aux.Stringid(101010011,0))
e1:SetCategory(CATEGORY_DRAW) e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(aux.gbspcon) e1:SetCondition(aux.gbspcon)
e1:SetCost(c101010011.drcost) e1:SetCost(c101010011.drcost)
......
...@@ -40,7 +40,7 @@ function c101010018.initial_effect(c) ...@@ -40,7 +40,7 @@ function c101010018.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c101010018.cfilter(c,tp) function c101010018.cfilter(c,tp)
return c:IsRace(RACE_PLANT) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp return c:IsRace(RACE_PLANT) and c:GetPreviousControler()==tp
end end
function c101010018.spcon(e,tp,eg,ep,ev,re,r,rp) function c101010018.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c101010018.cfilter,1,nil,tp) return eg:IsExists(c101010018.cfilter,1,nil,tp)
...@@ -75,7 +75,7 @@ function c101010018.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -75,7 +75,7 @@ function c101010018.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if ct>0 then if ct>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,ct,nil) local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,ct,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),1-tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
end end
end end
function c101010018.rmop(e,tp,eg,ep,ev,re,r,rp) function c101010018.rmop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -29,7 +29,7 @@ function c101010026.initial_effect(c) ...@@ -29,7 +29,7 @@ function c101010026.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c101010026.atkfilter1(c) function c101010026.atkfilter1(c)
return c:IsRace(ATTRIBUTE_WATER) and c:GetAttack()>0 return c:IsAttribute(ATTRIBUTE_WATER) and c:GetAttack()>0
end end
function c101010026.atktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010026.atktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c101010026.atkfilter1(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c101010026.atkfilter1(chkc) end
...@@ -50,7 +50,7 @@ function c101010026.atkop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c101010026.atkop1(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c101010026.atkfilter2(c) function c101010026.atkfilter2(c)
return c:IsFaceup() and c:IsRace(ATTRIBUTE_WATER) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WATER)
end end
function c101010026.atktg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010026.atktg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c101010026.atkfilter2(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c101010026.atkfilter2(chkc) end
......
...@@ -17,6 +17,7 @@ function c101010027.initial_effect(c) ...@@ -17,6 +17,7 @@ function c101010027.initial_effect(c)
e2:SetCategory(CATEGORY_DAMAGE) e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetCondition(c101010027.damcon) e2:SetCondition(c101010027.damcon)
......
...@@ -28,7 +28,7 @@ function c101010030.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c101010030.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(ct*-1000) e1:SetValue(ct*-1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
...@@ -8,7 +8,7 @@ function c101010037.initial_effect(c) ...@@ -8,7 +8,7 @@ function c101010037.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--counter --counter
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101010037,1)) e1:SetDescription(aux.Stringid(101010037,0))
e1:SetCategory(CATEGORY_COUNTER) e1:SetCategory(CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
......
...@@ -41,6 +41,7 @@ function c101010052.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,6 +41,7 @@ function c101010052.activate(e,tp,eg,ep,ev,re,r,rp)
if sc then if sc then
sc:SetMaterial(Group.FromCards(tc)) sc:SetMaterial(Group.FromCards(tc))
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_MATERIAL+REASON_LINK) Duel.SendtoGrave(tc,REASON_EFFECT+REASON_MATERIAL+REASON_LINK)
Duel.BreakEffect()
Duel.SpecialSummon(sc,SUMMON_TYPE_LINK,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sc,SUMMON_TYPE_LINK,tp,tp,false,false,POS_FACEUP)
sc:CompleteProcedure() sc:CompleteProcedure()
end end
......
...@@ -24,6 +24,7 @@ function c101010058.initial_effect(c) ...@@ -24,6 +24,7 @@ function c101010058.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,101010058) e3:SetCountLimit(1,101010058)
e3:SetCondition(c101010058.spcon) e3:SetCondition(c101010058.spcon)
e3:SetTarget(c101010058.sptg) e3:SetTarget(c101010058.sptg)
......
...@@ -37,7 +37,7 @@ function c101010059.initial_effect(c) ...@@ -37,7 +37,7 @@ function c101010059.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c101010059.cfilter(c,tp) function c101010059.cfilter(c,tp)
return c:GetSummonPlayer()==tp and c:IsSetCard(0xc9) return c:IsFaceup() and c:GetSummonPlayer()==tp and c:IsSetCard(0xc9)
end end
function c101010059.reccon(e,tp,eg,ep,ev,re,r,rp) function c101010059.reccon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c101010059.cfilter,1,nil,tp) return eg:IsExists(c101010059.cfilter,1,nil,tp)
......
...@@ -21,7 +21,8 @@ function c101010067.spfilter1(c,e,tp) ...@@ -21,7 +21,8 @@ function c101010067.spfilter1(c,e,tp)
and lk>0 and Duel.IsExistingMatchingCard(c101010067.spfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,lk) and lk>0 and Duel.IsExistingMatchingCard(c101010067.spfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,lk)
end end
function c101010067.spfilter2(c,e,tp,lk) function c101010067.spfilter2(c,e,tp,lk)
return c:IsSetCard(0x12b) and c:IsLink(lk-1) and c:IsType(TYPE_LINK) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false) return c:IsSetCard(0x12b) and c:GetLink()<lk and c:IsType(TYPE_LINK)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false)
end end
function c101010067.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010067.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return eg:IsContains(chkc) and c101010067.spfilter1(chkc,e,tp) end if chkc then return eg:IsContains(chkc) and c101010067.spfilter1(chkc,e,tp) end
......
...@@ -56,13 +56,13 @@ function c101010076.setfilter(c) ...@@ -56,13 +56,13 @@ function c101010076.setfilter(c)
return c:IsCode(96462121,22866836) and c:IsSSetable() return c:IsCode(96462121,22866836) and c:IsSSetable()
end end
function c101010076.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c101010076.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101010076.setfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c101010076.setfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
end end
function c101010076.setop(e,tp,eg,ep,ev,re,r,rp) function c101010076.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c101010076.setfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c101010076.setfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SSet(tp,g:GetFirst()) Duel.SSet(tp,g)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
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