Commit 1b10f2de authored by Nemo Ma's avatar Nemo Ma

fix

parent 1617be6f
...@@ -44,7 +44,7 @@ function c10128001.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c10128001.spop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) or c:IsFacedown() or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),0x6336,0x21,tc:GetBaseAttack(),tc:GetBaseDefense(),1,RACE_PLANT,ATTRIBUTE_EARTH) then return end if not c:IsRelateToEffect(e) or c:IsFacedown() or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),0x6336,0x21,tc:GetBaseAttack(),tc:GetBaseDefense(),1,RACE_PLANT,ATTRIBUTE_EARTH) then return end
c:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_EARTH,RACE_PLANT,1,tc:GetBaseAttack(),tc:GetBaseDefense()) c:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_EARTH,RACE_PLANT,1,tc:GetBaseAttack(),tc:GetBaseDefense())
Duel.SpecialSummonStep(c,1,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummonStep(c,1,tp,tp,true,false,POS_FACEUP)
c:AddMonsterAttributeComplete() --c:AddMonsterAttributeComplete()
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
function c10128001.thfilter(c) function c10128001.thfilter(c)
......
...@@ -47,7 +47,7 @@ function c10128002.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c10128002.spop(e,tp,eg,ep,ev,re,r,rp)
if not tc:IsRelateToEffect(e) or tc:IsFacedown() or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,tc:GetCode(),0x6336,0x21,0,0,1,RACE_PLANT,ATTRIBUTE_EARTH) then return end if not tc:IsRelateToEffect(e) or tc:IsFacedown() or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,tc:GetCode(),0x6336,0x21,0,0,1,RACE_PLANT,ATTRIBUTE_EARTH) then return end
tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_WATER,RACE_AQUA,1,0,0) tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_WATER,RACE_AQUA,1,0,0)
Duel.SpecialSummonStep(tc,1,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummonStep(tc,1,tp,tp,true,false,POS_FACEUP)
tc:AddMonsterAttributeComplete() --tc:AddMonsterAttributeComplete()
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
function c10128002.thfilter(c) function c10128002.thfilter(c)
......
...@@ -63,6 +63,6 @@ function c10128003.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,6 +63,6 @@ function c10128003.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=sg:Select(tp,1,1,nil):GetFirst() local tc=sg:Select(tp,1,1,nil):GetFirst()
tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_FIRE,RACE_SPELLCASTER,1,0,0) tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_FIRE,RACE_SPELLCASTER,1,0,0)
Duel.SpecialSummonStep(tc,1,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummonStep(tc,1,tp,tp,true,false,POS_FACEUP)
tc:AddMonsterAttributeComplete() --tc:AddMonsterAttributeComplete()
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
\ No newline at end of file
...@@ -44,7 +44,7 @@ function c10128004.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c10128004.spop(e,tp,eg,ep,ev,re,r,rp)
for rc in aux.Next(g) do for rc in aux.Next(g) do
rc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_WIND,RACE_INSECT,1,0,0) rc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_WIND,RACE_INSECT,1,0,0)
Duel.SpecialSummonStep(rc,1,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummonStep(rc,1,tp,tp,true,false,POS_FACEUP)
rc:AddMonsterAttributeComplete() --rc:AddMonsterAttributeComplete()
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
......
...@@ -41,7 +41,7 @@ function c10128005.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c10128005.spop(e,tp,eg,ep,ev,re,r,rp)
if not tc:IsRelateToEffect(e) or tc:IsFacedown() or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,tc:GetCode(),0x6336,0x21,0,0,1,RACE_PLANT,ATTRIBUTE_LIGHT) then return end if not tc:IsRelateToEffect(e) or tc:IsFacedown() or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,tc:GetCode(),0x6336,0x21,0,0,1,RACE_PLANT,ATTRIBUTE_LIGHT) then return end
tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_LIGHT,RACE_PLANT,1,0,0) tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_LIGHT,RACE_PLANT,1,0,0)
Duel.SpecialSummonStep(tc,1,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummonStep(tc,1,tp,tp,true,false,POS_FACEUP)
tc:AddMonsterAttributeComplete() --tc:AddMonsterAttributeComplete()
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
function c10128005.spfilter(c,e,tp) function c10128005.spfilter(c,e,tp)
......
...@@ -68,6 +68,6 @@ function c10128006.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,6 +68,6 @@ function c10128006.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.SelectMatchingCard(tp,c10128006.spfilter,tp,LOCATION_DECK,0,1,1,nil,tp,rc:GetCode()):GetFirst() local tc=Duel.SelectMatchingCard(tp,c10128006.spfilter,tp,LOCATION_DECK,0,1,1,nil,tp,rc:GetCode()):GetFirst()
tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_EARTH,RACE_ZOMBIE,1,0,0) tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_EARTH,RACE_ZOMBIE,1,0,0)
Duel.SpecialSummonStep(tc,1,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummonStep(tc,1,tp,tp,true,false,POS_FACEUP)
tc:AddMonsterAttributeComplete() --tc:AddMonsterAttributeComplete()
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
\ No newline at end of file
--时崎狂三---惜时 --时崎狂三---惜时
function c33400001.initial_effect(c) function c33400001.initial_effect(c)
c:EnableCounterPermit(0x334f) c:EnableCounterPermit(0x34f)
--counter --counter
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_COUNTER) e1:SetCategory(CATEGORY_COUNTER)
...@@ -39,17 +39,17 @@ function c33400001.costfilter(c) ...@@ -39,17 +39,17 @@ function c33400001.costfilter(c)
end end
function c33400001.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400001.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsExistingMatchingCard(c33400001.costfilter,tp,LOCATION_HAND,0,1,nil) and Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsExistingMatchingCard(c33400001.costfilter,tp,LOCATION_HAND,0,1,nil) and Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.DiscardHand(tp,c33400001.costfilter,1,1,REASON_DISCARD+REASON_COST) Duel.DiscardHand(tp,c33400001.costfilter,1,1,REASON_DISCARD+REASON_COST)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400001.addct(e,tp,eg,ep,ev,re,r,rp,chk) function c33400001.addct(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x334f) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x34f)
end end
function c33400001.addc(e,tp,eg,ep,ev,re,r,rp) function c33400001.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x334f,2) e:GetHandler():AddCounter(0x34f,2)
end end
end end
\ No newline at end of file
--时崎狂三---时间回收者 --时崎狂三---时间回收者
function c33400002.initial_effect(c) function c33400002.initial_effect(c)
c:EnableCounterPermit(0x334f) c:EnableCounterPermit(0x34f)
--counter --counter
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_COUNTER) e1:SetCategory(CATEGORY_COUNTER)
...@@ -25,9 +25,9 @@ function c33400002.initial_effect(c) ...@@ -25,9 +25,9 @@ function c33400002.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c33400002.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400002.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,2,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,2,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,2,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,2,REASON_COST)
end end
function c33400002.thfilter2(c) function c33400002.thfilter2(c)
return c:IsSetCard(0x3340) and c:IsType(TYPE_SPELL) and c:IsAbleToHand() return c:IsSetCard(0x3340) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
...@@ -46,10 +46,10 @@ function c33400002.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,10 +46,10 @@ function c33400002.thop2(e,tp,eg,ep,ev,re,r,rp)
end end
function c33400002.addct(e,tp,eg,ep,ev,re,r,rp,chk) function c33400002.addct(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x334f) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x34f)
end end
function c33400002.addc(e,tp,eg,ep,ev,re,r,rp) function c33400002.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x334f,2) e:GetHandler():AddCounter(0x34f,2)
end end
end end
\ No newline at end of file
--时崎狂三---献身者 --时崎狂三---献身者
function c33400003.initial_effect(c) function c33400003.initial_effect(c)
c:EnableCounterPermit(0x334f) c:EnableCounterPermit(0x34f)
--counter --counter
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_COUNTER) e1:SetCategory(CATEGORY_COUNTER)
...@@ -84,10 +84,10 @@ end ...@@ -84,10 +84,10 @@ end
--e1 --e1
function c33400003.addct(e,tp,eg,ep,ev,re,r,rp,chk) function c33400003.addct(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x334f) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x34f)
end end
function c33400003.addc(e,tp,eg,ep,ev,re,r,rp) function c33400003.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x334f,2) e:GetHandler():AddCounter(0x34f,2)
end end
end end
\ No newline at end of file
--时崎狂三 中二 --时崎狂三 中二
function c33400004.initial_effect(c) function c33400004.initial_effect(c)
c:EnableCounterPermit(0x34f)
--special summon from grave --special summon from grave
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(33400004,0)) e1:SetDescription(aux.Stringid(33400004,0))
...@@ -71,9 +72,9 @@ end ...@@ -71,9 +72,9 @@ end
--e1 --e1
function c33400004.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400004.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400004.spfilter(c,e,tp) function c33400004.spfilter(c,e,tp)
return c:IsSetCard(0x3341) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x3341) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
--时崎狂三 无言之影 --时崎狂三 无言之影
function c33400005.initial_effect(c) function c33400005.initial_effect(c)
c:EnableCounterPermit(0x34f)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
...@@ -51,11 +52,11 @@ end ...@@ -51,11 +52,11 @@ end
--e2 --e2
function c33400005.addct(e,tp,eg,ep,ev,re,r,rp,chk) function c33400005.addct(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x334f) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x34f)
end end
function c33400005.addc(e,tp,eg,ep,ev,re,r,rp) function c33400005.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x334f,2) e:GetHandler():AddCounter(0x34f,2)
end end
end end
function c33400005.filter(c) function c33400005.filter(c)
......
...@@ -46,11 +46,11 @@ function c33400007.sumval(e,c) ...@@ -46,11 +46,11 @@ function c33400007.sumval(e,c)
end end
function c33400007.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400007.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil)
and Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) and Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
local ct=e:GetLabel() local ct=e:GetLabel()
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function c33400007.thfilter(c) function c33400007.thfilter(c)
......
...@@ -66,9 +66,9 @@ end ...@@ -66,9 +66,9 @@ end
function c33400008.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400008.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400008.condition(e,tp,eg,ep,ev,re,r,rp) function c33400008.condition(e,tp,eg,ep,ev,re,r,rp)
return re and re:IsActiveType(TYPE_QUICKPLAY) and re:GetHandler():IsSetCard(0x3340) and rp==tp and e:GetHandler():GetFlagEffect(1)>0 return re and re:IsActiveType(TYPE_QUICKPLAY) and re:GetHandler():IsSetCard(0x3340) and rp==tp and e:GetHandler():GetFlagEffect(1)>0
......
...@@ -37,6 +37,8 @@ function c33400009.initial_effect(c) ...@@ -37,6 +37,8 @@ function c33400009.initial_effect(c)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e3:SetLabel(2)
e3:SetCost(c33400009.cost)
e3:SetTarget(c33400009.destg) e3:SetTarget(c33400009.destg)
e3:SetOperation(c33400009.desop) e3:SetOperation(c33400009.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -49,9 +51,9 @@ function c33400009.afilter(c) ...@@ -49,9 +51,9 @@ function c33400009.afilter(c)
end end
function c33400009.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400009.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400009.cfilter(c,lg) function c33400009.cfilter(c,lg)
return lg:IsContains(c) return lg:IsContains(c)
......
...@@ -83,9 +83,9 @@ function c33400010.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,9 +83,9 @@ function c33400010.disop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33400010.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400010.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400010.dstg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33400010.dstg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
--时崎狂三 婚纱 --时崎狂三 婚纱
function c33400011.initial_effect(c) function c33400011.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
c:EnableCounterPermit(0x34f)
--special summon condition --special summon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -39,19 +40,19 @@ function c33400011.initial_effect(c) ...@@ -39,19 +40,19 @@ function c33400011.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c33400011.filter(c) function c33400011.filter(c)
return c:IsFaceup() and c:IsCanAddCounter(0x334f,6) return c:IsFaceup() and c:IsCanAddCounter(0x34f,6)
end end
function c33400011.addct(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33400011.addct(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c33400011.filter(chkc) end if chkc then return chkc:IsOnField() and c33400011.filter(chkc) end
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c33400011.filter,tp,LOCATION_ONFIELD,0,1,1,nil) Duel.SelectTarget(tp,c33400011.filter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,6,0,0x334f) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,6,0,0x34f)
end end
function c33400011.addc(e,tp,eg,ep,ev,re,r,rp) function c33400011.addc(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
tc:AddCounter(0x334f,6) tc:AddCounter(0x34f,6)
end end
end end
function c33400011.etarget(e,c) function c33400011.etarget(e,c)
......
...@@ -94,9 +94,9 @@ function c33400012.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -94,9 +94,9 @@ function c33400012.disop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33400012.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400012.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400012.thcon(e,tp,eg,ep,ev,re,r,rp) function c33400012.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
......
...@@ -48,19 +48,19 @@ function c33400013.activate3(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,19 +48,19 @@ function c33400013.activate3(e,tp,eg,ep,ev,re,r,rp)
end end
--e2 --e2
function c33400013.filter(c) function c33400013.filter(c)
return c:IsFaceup() and c:IsCanAddCounter(0x334f,4) return c:IsFaceup() and c:IsCanAddCounter(0x34f,4)
end end
function c33400013.addct(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33400013.addct(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c33400013.filter(chkc) end if chkc then return chkc:IsOnField() and c33400013.filter(chkc) end
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c33400013.filter,tp,LOCATION_ONFIELD,0,1,1,nil) Duel.SelectTarget(tp,c33400013.filter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,4,0,0x334f) Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,4,0,0x34f)
end end
function c33400013.addc(e,tp,eg,ep,ev,re,r,rp) function c33400013.addc(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
tc:AddCounter(0x334f,4) tc:AddCounter(0x34f,4)
end end
end end
--e1 --e1
......
...@@ -39,9 +39,9 @@ function c33400014.dacon(e) ...@@ -39,9 +39,9 @@ function c33400014.dacon(e)
end end
function c33400014.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400014.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c33400014.imop(e,tp,eg,ep,ev,re,r,rp) function c33400014.imop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -61,9 +61,9 @@ function c33400015.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,9 +61,9 @@ function c33400015.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33400015.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) function c33400015.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) and e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c33400015.spfilter2(c,e,tp) function c33400015.spfilter2(c,e,tp)
......
...@@ -200,11 +200,11 @@ end ...@@ -200,11 +200,11 @@ end
function c33400033.valcon(e,re,r,rp) function c33400033.valcon(e,re,r,rp)
return r==REASON_BATTLE return r==REASON_BATTLE
end end
function c33400033.op3(e,tp,eg,ep,ev,re,r,rp) function c33400033.op3(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c33400033.filter,tp,LOCATION_ONFIELD,0,1,1,nil) Duel.SelectTarget(tp,c33400033.filter,tp,LOCATION_ONFIELD,0,1,1,nil)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
tc:AddCounter(0x334f,2) tc:AddCounter(0x34f,2)
local e3_1=Effect.CreateEffect(e:GetHandler()) local e3_1=Effect.CreateEffect(e:GetHandler())
e3_1:SetType(EFFECT_TYPE_SINGLE) e3_1:SetType(EFFECT_TYPE_SINGLE)
e3_1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3_1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
...@@ -218,7 +218,7 @@ function c33400033.efilter3_1(e,te) ...@@ -218,7 +218,7 @@ function c33400033.efilter3_1(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
end end
function c33400033.filter(c) function c33400033.filter(c)
return c:IsFaceup() and c:IsCanAddCounter(0x334f,2) return c:IsFaceup() and c:IsCanAddCounter(0x34f,2)
end end
--e6 --e6
function c33400033.thfilter(c) function c33400033.thfilter(c)
...@@ -248,5 +248,5 @@ function c33400033.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -248,5 +248,5 @@ function c33400033.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c33400033.filter,tp,LOCATION_ONFIELD,0,1,1,nil) Duel.SelectTarget(tp,c33400033.filter,tp,LOCATION_ONFIELD,0,1,1,nil)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
tc:AddCounter(0x334f,2) tc:AddCounter(0x34f,2)
end end
\ No newline at end of file
--刻刻帝-喰时之城 --刻刻帝-喰时之城
function c33400100.initial_effect(c) function c33400100.initial_effect(c)
c:EnableCounterPermit(0x334f) c:EnableCounterPermit(0x34f)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
...@@ -36,7 +36,7 @@ end ...@@ -36,7 +36,7 @@ end
function c33400100.counter(e,tp,eg,ep,ev,re,r,rp) function c33400100.counter(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(c33400100.cfilter,nil) local ct=eg:FilterCount(c33400100.cfilter,nil)
if ct>0 then if ct>0 then
e:GetHandler():AddCounter(0x334f,ct,true) e:GetHandler():AddCounter(0x34f,ct,true)
end end
end end
function c33400100.cfilter(c) function c33400100.cfilter(c)
......
...@@ -14,9 +14,9 @@ function c33400101.initial_effect(c) ...@@ -14,9 +14,9 @@ function c33400101.initial_effect(c)
end end
function c33400101.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400101.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400101.filter(c) function c33400101.filter(c)
return c:IsFaceup() and c:IsSetCard(0x3341) return c:IsFaceup() and c:IsSetCard(0x3341)
......
...@@ -20,19 +20,19 @@ function c33400102.filter(c) ...@@ -20,19 +20,19 @@ function c33400102.filter(c)
end end
function c33400102.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33400102.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c33400102.cfilter,tp,LOCATION_MZONE,0,1,nil) if chk==0 then return Duel.IsExistingTarget(c33400102.cfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsCanRemoveCounter(tp,1,0,0x334f,1,REASON_COST) and Duel.IsCanRemoveCounter(tp,1,0,0x34f,1,REASON_COST)
end end
local sc=Duel.GetMatchingGroupCount(c33400102.cfilter,tp,LOCATION_MZONE,0,nil) local sc=Duel.GetMatchingGroupCount(c33400102.cfilter,tp,LOCATION_MZONE,0,nil)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c33400102.filter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c33400102.filter(chkc) end
if chk==0 then return sc>0 and Duel.IsExistingTarget(c33400102.filter,tp,LOCATION_MZONE,LOCATION_MZONE,-1,nil) end if chk==0 then return sc>0 and Duel.IsExistingTarget(c33400102.filter,tp,LOCATION_MZONE,LOCATION_MZONE,-1,nil) end
local cn=Duel.GetCounter(tp,1,0,0x334f) local cn=Duel.GetCounter(tp,1,0,0x34f)
local lvt={} local lvt={}
for i=1,7 do for i=1,7 do
if i<=cn and i<=sc then lvt[i]=i end if i<=cn and i<=sc then lvt[i]=i end
end end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33400102,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33400102,1))
local sc1=Duel.AnnounceNumber(tp,table.unpack(lvt)) local sc1=Duel.AnnounceNumber(tp,table.unpack(lvt))
Duel.RemoveCounter(tp,1,0,0x334f,sc1,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,sc1,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c33400102.filter,tp,LOCATION_MZONE,LOCATION_MZONE,sc1,sc1,nil) local g=Duel.SelectTarget(tp,c33400102.filter,tp,LOCATION_MZONE,LOCATION_MZONE,sc1,sc1,nil)
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE+CATEGORY_LVCHANGE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE+CATEGORY_LVCHANGE,g,g:GetCount(),0,0)
......
...@@ -25,14 +25,14 @@ function c33400103.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -25,14 +25,14 @@ function c33400103.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local sc=Duel.GetMatchingGroupCount(c33400103.cfilter,tp,LOCATION_MZONE,0,nil) local sc=Duel.GetMatchingGroupCount(c33400103.cfilter,tp,LOCATION_MZONE,0,nil)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c33400102.filter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c33400102.filter(chkc) end
if chk==0 then return sc>0 and Duel.IsExistingTarget(c33400102.filter,tp,LOCATION_MZONE,LOCATION_MZONE,-1,nil) end if chk==0 then return sc>0 and Duel.IsExistingTarget(c33400102.filter,tp,LOCATION_MZONE,LOCATION_MZONE,-1,nil) end
local cn=Duel.GetCounter(tp,1,0,0x334f) local cn=Duel.GetCounter(tp,1,0,0x34f)
local lvt={} local lvt={}
for i=1,7 do for i=1,7 do
if i<=cn and i<=sc then lvt[i]=i end if i<=cn and i<=sc then lvt[i]=i end
end end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33400103,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33400103,1))
local sc1=Duel.AnnounceNumber(tp,table.unpack(lvt)) local sc1=Duel.AnnounceNumber(tp,table.unpack(lvt))
Duel.RemoveCounter(tp,1,0,0x334f,sc1,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,sc1,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c33400103.filter,tp,LOCATION_MZONE,LOCATION_MZONE,sc1,sc1,nil) local g=Duel.SelectTarget(tp,c33400103.filter,tp,LOCATION_MZONE,LOCATION_MZONE,sc1,sc1,nil)
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE+CATEGORY_LVCHANGE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE+CATEGORY_LVCHANGE,g,g:GetCount(),0,0)
......
...@@ -16,9 +16,9 @@ function c33400104.initial_effect(c) ...@@ -16,9 +16,9 @@ function c33400104.initial_effect(c)
end end
function c33400104.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400104.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400104.cfilter(c,tp) function c33400104.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp and c:IsPreviousPosition(POS_FACEUP) return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp and c:IsPreviousPosition(POS_FACEUP)
......
...@@ -14,8 +14,8 @@ function c33400105.filter1(c) ...@@ -14,8 +14,8 @@ function c33400105.filter1(c)
return c:IsSetCard(0x3341) or c:IsSetCard(0x3340) return c:IsSetCard(0x3341) or c:IsSetCard(0x3340)
end end
function c33400105.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33400105.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,LOCATION_DECK)>0 and Duel.IsCanRemoveCounter(tp,1,0,0x334f,2,REASON_COST) end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,LOCATION_DECK)>0 and Duel.IsCanRemoveCounter(tp,1,0,0x34f,2,REASON_COST) end
local ct=Duel.GetCounter(tp,LOCATION_ONFIELD,0,0x334f) local ct=Duel.GetCounter(tp,LOCATION_ONFIELD,0,0x34f)
local b1=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0) local b1=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
local b2=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK) local b2=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
...@@ -24,22 +24,22 @@ function c33400105.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -24,22 +24,22 @@ function c33400105.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if Duel.IsExistingMatchingCard(c33400105.filter1,tp,LOCATION_GRAVE,0,3,nil) then if Duel.IsExistingMatchingCard(c33400105.filter1,tp,LOCATION_GRAVE,0,3,nil) then
op=Duel.SelectOption(tp,aux.Stringid(33400105,0),aux.Stringid(33400105,1),aux.Stringid(33400105,2)) op=Duel.SelectOption(tp,aux.Stringid(33400105,0),aux.Stringid(33400105,1),aux.Stringid(33400105,2))
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
if op==2 then Duel.RemoveCounter(tp,1,0,0x1003,4,REASON_COST) if op==2 then Duel.RemoveCounter(tp,1,0,0x34f,4,REASON_COST)
else Duel.RemoveCounter(tp,1,0,0x334f,2,REASON_COST) else Duel.RemoveCounter(tp,1,0,0x34f,2,REASON_COST)
end end
else else
op=Duel.SelectOption(tp,aux.Stringid(33400105,0),aux.Stringid(33400105,1)) op=Duel.SelectOption(tp,aux.Stringid(33400105,0),aux.Stringid(33400105,1))
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,2,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,2,REASON_COST)
end end
elseif b1 then elseif b1 then
op=Duel.SelectOption(tp,aux.Stringid(33400105,0)) op=Duel.SelectOption(tp,aux.Stringid(33400105,0))
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,2,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,2,REASON_COST)
else else
op=Duel.SelectOption(tp,aux.Stringid(33400105,1))+1 op=Duel.SelectOption(tp,aux.Stringid(33400105,1))+1
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,2,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,2,REASON_COST)
end end
e:SetLabel(op) e:SetLabel(op)
end end
...@@ -76,7 +76,7 @@ function c33400105.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function c33400105.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
Duel.SortDecktop(tp,1-tp,cm2-1) Duel.SortDecktop(tp,1-tp,cm2-1)
else Duel.SortDecktop(tp,1-tp,cm2) else Duel.SortDecktop(tp,1-tp,cm2)
end end
end end
end end
function c33400105.filter(c) function c33400105.filter(c)
......
...@@ -16,18 +16,18 @@ function c33400106.cfilter(c,e,tp) ...@@ -16,18 +16,18 @@ function c33400106.cfilter(c,e,tp)
end end
function c33400106.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33400106.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c33400106.cfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) if chk==0 then return Duel.IsExistingTarget(c33400106.cfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
and Duel.IsCanRemoveCounter(tp,1,0,0x334f,2,REASON_COST) and Duel.IsCanRemoveCounter(tp,1,0,0x34f,2,REASON_COST)
end end
local sc=Duel.GetMatchingGroupCount(c33400106.cfilter,tp,LOCATION_GRAVE,0,nil,e,tp) local sc=Duel.GetMatchingGroupCount(c33400106.cfilter,tp,LOCATION_GRAVE,0,nil,e,tp)
if chk==0 then return sc>0 end if chk==0 then return sc>0 end
local cn=Duel.GetCounter(tp,1,0,0x334f) local cn=Duel.GetCounter(tp,1,0,0x34f)
local lvt={} local lvt={}
for i=1,2 do for i=1,2 do
if (i*2)<=cn and i<=sc then lvt[i]=i end if (i*2)<=cn and i<=sc then lvt[i]=i end
end end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33400106,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(33400106,1))
local sc1=Duel.AnnounceNumber(tp,table.unpack(lvt)) local sc1=Duel.AnnounceNumber(tp,table.unpack(lvt))
Duel.RemoveCounter(tp,1,0,0x334f,sc1*2,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,sc1*2,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c33400106.cfilter,tp,LOCATION_GRAVE,0,sc1,sc1,nil,e,tp) local g=Duel.SelectTarget(tp,c33400106.cfilter,tp,LOCATION_GRAVE,0,sc1,sc1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0)
......
...@@ -14,9 +14,9 @@ function c33400107.initial_effect(c) ...@@ -14,9 +14,9 @@ function c33400107.initial_effect(c)
end end
function c33400107.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400107.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400107.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33400107.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) end if chkc then return chkc:IsLocation(LOCATION_ONFIELD) end
......
...@@ -14,9 +14,9 @@ function c33400108.initial_effect(c) ...@@ -14,9 +14,9 @@ function c33400108.initial_effect(c)
end end
function c33400108.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400108.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400108.target(e,tp,eg,ep,ev,re,r,rp,chk) function c33400108.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
......
...@@ -12,9 +12,9 @@ function c33400109.initial_effect(c) ...@@ -12,9 +12,9 @@ function c33400109.initial_effect(c)
end end
function c33400109.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400109.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400109.operation(e,tp,eg,ep,ev,re,r,rp) function c33400109.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,0,LOCATION_SZONE+LOCATION_MZONE):Filter(Card.IsFacedown,nil) local g=Duel.GetFieldGroup(tp,0,LOCATION_SZONE+LOCATION_MZONE):Filter(Card.IsFacedown,nil)
......
...@@ -14,9 +14,9 @@ function c33400110.initial_effect(c) ...@@ -14,9 +14,9 @@ function c33400110.initial_effect(c)
end end
function c33400110.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400110.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
end end
function c33400110.filter(c) function c33400110.filter(c)
return c:IsFaceup() return c:IsFaceup()
......
...@@ -12,9 +12,9 @@ function c33400111.initial_effect(c) ...@@ -12,9 +12,9 @@ function c33400111.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c33400111.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400111.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,11,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,11,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,11,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,11,REASON_COST)
end end
function c33400111.cfilter(c) function c33400111.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3341) return c:IsFaceup() and c:IsSetCard(0x3341)
......
...@@ -22,9 +22,9 @@ function c33400112.cfilter(c) ...@@ -22,9 +22,9 @@ function c33400112.cfilter(c)
end end
function c33400112.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c33400112.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x334f,ct,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x34f,ct,REASON_COST) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RemoveCounter(tp,1,0,0x334f,ct,REASON_COST) Duel.RemoveCounter(tp,1,0,0x34f,ct,REASON_COST)
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2)) Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end end
function c33400112.tdfilter(c) function c33400112.tdfilter(c)
......
--踏过无尽尸体的觉悟 --踏过无尽尸体的觉悟
function c33400117.initial_effect(c) function c33400117.initial_effect(c)
c:EnableCounterPermit(0x34f)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(33400117,0)) e1:SetDescription(aux.Stringid(33400117,0))
...@@ -49,6 +50,6 @@ function c33400117.operation(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -49,6 +50,6 @@ function c33400117.operation(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
e:GetHandler():AddCounter(0x334f,2) e:GetHandler():AddCounter(0x34f,2)
end end
end end
...@@ -73,7 +73,7 @@ end ...@@ -73,7 +73,7 @@ end
function c9980768.hdop(e,tp,eg,ep,ev,re,r,rp) function c9980768.hdop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND) local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
Duel.ConfirmCards(tp,g) Duel.ConfirmCards(tp,g)
local sg=g:Filter(Card.IsSetCard,nil,TYPE_TUNER) local sg=g:Filter(Card.IsType,nil,TYPE_TUNER)
if sg:GetCount()>0 then if sg:GetCount()>0 then
local atk=0 local atk=0
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.SendtoGrave(sg,REASON_EFFECT)
......
...@@ -102,7 +102,7 @@ end ...@@ -102,7 +102,7 @@ end
function c9980783.rmop(e,tp,eg,ep,ev,re,r,rp) function c9980783.rmop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(9980783,3)) Duel.Hint(HINT_MUSIC,0,aux.Stringid(9980783,3))
end end
end end
\ No newline at end of file
--欲望战士OOO·魂联组 --欲望战士OOO·魂联组
function c9980792.initial_effect(c) function c9980792.initial_effect(c)
--link summon --link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0xabc1),2) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0xabc1),2,99)
c:EnableReviveLimit() c:EnableReviveLimit()
--code --code
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
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