Commit dd95207b authored by wyykak's avatar wyykak

fix missing descset 0x258

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 5425ecbc
Pipeline #21805 passed with stage
in 52 seconds
...@@ -21,33 +21,36 @@ function c31081.initial_effect(c) ...@@ -21,33 +21,36 @@ function c31081.initial_effect(c)
e2:SetCost(c31081.cost2) e2:SetCost(c31081.cost2)
e2:SetOperation(c31081.operation2) e2:SetOperation(c31081.operation2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c31081.counterfilter(c)
c31081.DescSetName=0x258
function c31081.counterfilter(c)
return c:IsRace(RACE_BEAST) return c:IsRace(RACE_BEAST)
end end
--Monster Effect 1 --Monster Effect 1
function c31081.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c31081.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(31081,tp,ACTIVITY_SPSUMMON)==0 if chk==0 then return Duel.GetCustomActivityCount(31081,tp,ACTIVITY_SPSUMMON)==0
and e:GetHandler():IsAbleToHandAsCost() end and e:GetHandler():IsAbleToHandAsCost() end
Duel.SendtoHand(e:GetHandler(), nil, REASON_COST) Duel.SendtoHand(e:GetHandler(), nil, REASON_COST)
end end
function c31081.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c31081.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsRace(RACE_BEAST) return c:IsRace(RACE_BEAST)
end end
--效果条件:自己墓地的兽族怪兽或者「0x258」怪兽 --效果条件:自己墓地的兽族怪兽或者「0x258」怪兽
function c31081.filter1b(c,e,tp) function c31081.filter1b(c,e,tp)
return (c:IsRace(RACE_BEAST) or c:IsSetCard(0x258)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (c:IsRace(RACE_BEAST) or c:IsSetCard(0x258)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c31081.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c31081.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c31081.filter1b(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c31081.filter1b(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c31081.filter1b,tp,LOCATION_GRAVE,0,1,nil,e,tp) if chk==0 then return Duel.IsExistingTarget(c31081.filter1b,tp,LOCATION_GRAVE,0,1,nil,e,tp)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c31081.filter1b,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c31081.filter1b,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c31081.operation1(e,tp,eg,ep,ev,re,r,rp) function c31081.operation1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsRelateToEffect(e) then
...@@ -61,13 +64,13 @@ function c31081.initial_effect(c) ...@@ -61,13 +64,13 @@ function c31081.initial_effect(c)
e1:SetTarget(c31081.splimit) e1:SetTarget(c31081.splimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
--Monster Effect 2 --Monster Effect 2
function c31081.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function c31081.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.SendtoDeck(c,nil,0,REASON_COST) Duel.SendtoDeck(c,nil,0,REASON_COST)
end end
function c31081.operation2(e,tp,eg,ep,ev,re,r,rp) function c31081.operation2(e,tp,eg,ep,ev,re,r,rp)
local token=Duel.CreateToken(tp,200112) local token=Duel.CreateToken(tp,200112)
Duel.MoveToField(token,tp,tp,LOCATION_FZONE,POS_FACEUP,true) Duel.MoveToField(token,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
......
...@@ -21,33 +21,34 @@ function c31084.initial_effect(c) ...@@ -21,33 +21,34 @@ function c31084.initial_effect(c)
e2:SetCost(c31084.cost2) e2:SetCost(c31084.cost2)
e2:SetOperation(c31084.operation2) e2:SetOperation(c31084.operation2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c31084.counterfilter(c) c31084.DescSetName=0x258
function c31084.counterfilter(c)
return c:GetAttribute()==ATTRIBUTE_EARTH return c:GetAttribute()==ATTRIBUTE_EARTH
end end
--Monster Effect 1 --Monster Effect 1
function c31084.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c31084.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(31084,tp,ACTIVITY_SPSUMMON)==0 if chk==0 then return Duel.GetCustomActivityCount(31084,tp,ACTIVITY_SPSUMMON)==0
and e:GetHandler():IsAbleToHandAsCost() end and e:GetHandler():IsAbleToHandAsCost() end
Duel.SendtoHand(e:GetHandler(), nil, REASON_COST) Duel.SendtoHand(e:GetHandler(), nil, REASON_COST)
end end
function c31084.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c31084.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:GetAttribute()~=ATTRIBUTE_EARTH return c:GetAttribute()~=ATTRIBUTE_EARTH
end end
--效果条件:自己墓地的地属性怪兽或者「0x258」怪兽 --效果条件:自己墓地的地属性怪兽或者「0x258」怪兽
function c31084.filter1b(c,e,tp) function c31084.filter1b(c,e,tp)
return (c:IsAttribute(ATTRIBUTE_EARTH) or c:IsSetCard(0x258)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (c:IsAttribute(ATTRIBUTE_EARTH) or c:IsSetCard(0x258)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c31084.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c31084.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c31084.filter1b(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c31084.filter1b(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c31084.filter1b,tp,LOCATION_GRAVE,0,1,nil,e,tp) if chk==0 then return Duel.IsExistingTarget(c31084.filter1b,tp,LOCATION_GRAVE,0,1,nil,e,tp)
and Duel.GetMZoneCount(tp,e:GetHandler())>0 end and Duel.GetMZoneCount(tp,e:GetHandler())>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c31084.filter1b,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c31084.filter1b,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c31084.operation1(e,tp,eg,ep,ev,re,r,rp) function c31084.operation1(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
...@@ -60,17 +61,17 @@ function c31084.initial_effect(c) ...@@ -60,17 +61,17 @@ function c31084.initial_effect(c)
e1:SetTarget(c31084.splimit) e1:SetTarget(c31084.splimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
--Monster Effect 2 --Monster Effect 2
--效果条件:游戏中除外的这张卡 --效果条件:游戏中除外的这张卡
function c31084.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function c31084.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.SendtoDeck(c,nil,0,REASON_COST) Duel.SendtoDeck(c,nil,0,REASON_COST)
end end
--发动操作:自己回复1000基本分。 --发动操作:自己回复1000基本分。
function c31084.operation2(e,tp,eg,ep,ev,re,r,rp) function c31084.operation2(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(tp,1000,REASON_EFFECT) Duel.Recover(tp,1000,REASON_EFFECT)
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