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)
return c:IsLocation(LOCATION_GRAVE) and r==REASON_LINK
end
function c101010005.thfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToHand()
end
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
......@@ -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)
end
function c101010005.thfilter2(c)
return c:IsType(TYPE_MONSTER)
return c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c101010005.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -34,5 +34,5 @@ function c101010007.immcon(e)
return Duel.IsExistingMatchingCard(c101010007.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end
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
......@@ -7,7 +7,7 @@ function c101010011.initial_effect(c)
e1:SetDescription(aux.Stringid(101010011,0))
e1:SetCategory(CATEGORY_DRAW)
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:SetCondition(aux.gbspcon)
e1:SetCost(c101010011.drcost)
......
......@@ -40,7 +40,7 @@ function c101010018.initial_effect(c)
c:RegisterEffect(e3)
end
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
function c101010018.spcon(e,tp,eg,ep,ev,re,r,rp)
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)
if ct>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
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
function c101010018.rmop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -29,7 +29,7 @@ function c101010026.initial_effect(c)
c:RegisterEffect(e3)
end
function c101010026.atkfilter1(c)
return c:IsRace(ATTRIBUTE_WATER) and c:GetAttack()>0
return c:IsAttribute(ATTRIBUTE_WATER) and c:GetAttack()>0
end
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
......@@ -50,7 +50,7 @@ function c101010026.atkop1(e,tp,eg,ep,ev,re,r,rp)
end
end
function c101010026.atkfilter2(c)
return c:IsFaceup() and c:IsRace(ATTRIBUTE_WATER)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_WATER)
end
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
......
......@@ -17,6 +17,7 @@ function c101010027.initial_effect(c)
e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c101010027.damcon)
......
......@@ -28,7 +28,7 @@ function c101010030.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(ct*-1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
end
end
......@@ -8,7 +8,7 @@ function c101010037.initial_effect(c)
c:EnableReviveLimit()
--counter
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101010037,1))
e1:SetDescription(aux.Stringid(101010037,0))
e1:SetCategory(CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
......
......@@ -41,6 +41,7 @@ function c101010052.activate(e,tp,eg,ep,ev,re,r,rp)
if sc then
sc:SetMaterial(Group.FromCards(tc))
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_MATERIAL+REASON_LINK)
Duel.BreakEffect()
Duel.SpecialSummon(sc,SUMMON_TYPE_LINK,tp,tp,false,false,POS_FACEUP)
sc:CompleteProcedure()
end
......
......@@ -24,6 +24,7 @@ function c101010058.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetRange(LOCATION_SZONE)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,101010058)
e3:SetCondition(c101010058.spcon)
e3:SetTarget(c101010058.sptg)
......
......@@ -37,7 +37,7 @@ function c101010059.initial_effect(c)
c:RegisterEffect(e4)
end
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
function c101010059.reccon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c101010059.cfilter,1,nil,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)
end
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
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
......
......@@ -56,13 +56,13 @@ function c101010076.setfilter(c)
return c:IsCode(96462121,22866836) and c:IsSSetable()
end
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
function c101010076.setop(e,tp,eg,ep,ev,re,r,rp)
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
Duel.SSet(tp,g:GetFirst())
Duel.SSet(tp,g)
Duel.ConfirmCards(1-tp,g)
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