Commit b24da63c authored by Huangnan's avatar Huangnan

时光酒桌字段拆分

parent ce3de434
No preview for this file type
......@@ -102,7 +102,7 @@ function timeTable.counterEffectCost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(sg,REASON_COST)
end
function timeTable.removeFilter(c)
return c:IsSetCard(0x629) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
return c:IsSetCard(0x33629) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function timeTable.chainlm(e,rp,tp)
return e:GetHandler():IsType(TYPE_COUNTER)
......@@ -156,7 +156,7 @@ function timeTable.spsummon(c,code,extra3,extra5)
return e1
end
function timeTable.spsummonCon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():IsSetCard(0x629)
return re:GetHandler():IsSetCard(0x33629)
end
function timeTable.spsummonTargetFilter(c)
return c:IsLevel(9) and c:IsAbleToGrave() and Duel.GetMZoneCount(tp,c)>0
......@@ -207,7 +207,7 @@ function timeTable.exsplimit(e,c)
return c:IsLocation(LOCATION_EXTRA)
end
function timeTable.effectlimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsSetCard(0x629)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsSetCard(0x33629)
end
function timeTable.globle(c)
if not timeTable.global_check then
......@@ -243,7 +243,7 @@ function timeTable.spell(c,extra3,extra5)
c:RegisterEffect(e1)
end
function timeTable.actionConFilter(c)
return c:IsFacedown() or not c:IsSetCard(0x629)
return c:IsFacedown() or not c:IsSetCard(0x33629)
end
function timeTable.actionCon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(timeTable.actionConFilter,tp,LOCATION_MZONE,0,1,nil)
......@@ -306,7 +306,7 @@ function cm.extra3(c)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x629))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x33629))
e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
......
......@@ -9,7 +9,7 @@ function cm.initial_effect(c)
end
--e1
function cm.stfil(c)
return not c:IsCode(60002010) and c:IsSetCard(0x629) and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
return not c:IsCode(60002010) and c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
end
function cm.extraMove(e,tp)
local c=e:GetHandler()
......@@ -33,7 +33,7 @@ function cm.extra3(c)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x629))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3629))
e1:SetValue(1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
......
......@@ -25,7 +25,7 @@ function cm.extra3(c)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x629))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3629))
e1:SetValue(1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
......
......@@ -9,7 +9,7 @@ function cm.initial_effect(c)
end
--e1
function cm.rmfil(c)
return c:IsSetCard(0x629) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
return c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function cm.extraMove(e,tp)
local c=e:GetHandler()
......@@ -29,7 +29,7 @@ function cm.extra3(c)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x629))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3629))
e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
......
......@@ -28,14 +28,14 @@ function cm.extra3(c)
e2:SetCode(EFFECT_DIRECT_ATTACK)
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x629))
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3629))
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CHANGE_BATTLE_DAMAGE)
e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x629))
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3629))
e3:SetCondition(cm.rdcon)
e3:SetValue(aux.ChangeBattleDamage(1,HALF_DAMAGE))
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
......
......@@ -28,7 +28,7 @@ function cm.extra3(c)
e2:SetCode(EFFECT_PIERCE)
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x629))
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3629))
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e2)
end
......
......@@ -9,7 +9,7 @@ function cm.initial_effect(c)
end
--e1
function cm.thfil(c)
return c:IsSetCard(0x629) and not c:IsCode(m) and c:IsAbleToHand()
return c:IsSetCard(0x3629) and not c:IsCode(m) and c:IsAbleToHand()
end
function cm.extraMove(e,tp)
local c=e:GetHandler()
......@@ -58,11 +58,11 @@ function cm.gxstfil(c)
if not Duel.IsPlayerAffectedByEffect(tp,m) then
return c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER) and c:IsSSetable()
else
return (c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER) and c:IsSSetable()) or (c:IsSetCard(0x629) and c:IsType(TYPE_MONSTER))
return (c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER) and c:IsSSetable()) or (c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER))
end
end
function cm.gxstfil1(c)
return c:IsSetCard(0x629) and c:IsType(TYPE_MONSTER)
return c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER)
end
function cm.gxstgck(g,tp)
if Duel.IsPlayerAffectedByEffect(tp,m) then
......
......@@ -9,7 +9,7 @@ function cm.initial_effect(c)
end
--e1
function cm.tgtfil(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x629)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x3629)
end
function cm.extraMove(e,tp)
local c=e:GetHandler()
......@@ -64,7 +64,7 @@ function cm.cntop(e,tp,eg,ep,ev,re,r,rp)
timeTable.immue(tc)
end
function cm.ggctfil(c)
return c:IsSetCard(0x629) and c:IsDiscardable()
return c:IsSetCard(0x3629) and c:IsDiscardable()
end
function cm.gcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.ggctfil,tp,LOCATION_HAND,0,1,nil) end
......
......@@ -9,7 +9,7 @@ function cm.initial_effect(c)
end
--e1
function cm.thfil(c)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0x629)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0x3629)
end
function cm.extraMove(e,tp)
local c=e:GetHandler()
......@@ -73,7 +73,7 @@ function cm.addop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.ggctfil(c)
return c:IsSetCard(0x629) and c:IsDiscardable()
return c:IsSetCard(0x3629) and c:IsDiscardable()
end
function cm.gcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.ggctfil,tp,LOCATION_HAND,0,1,nil) end
......
......@@ -9,7 +9,7 @@ function cm.initial_effect(c)
end
--e1
function cm.thfil(c)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0x629)
return c:IsType(TYPE_SPELL) and c:IsSetCard(0x3629)
end
function cm.extraMove(e,tp)
local c=e:GetHandler()
......@@ -78,7 +78,7 @@ function cm.addop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.ggctfil(c)
return c:IsSetCard(0x629) and c:IsDiscardable()
return c:IsSetCard(0x3629) and c:IsDiscardable()
end
function cm.gcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.ggctfil,tp,LOCATION_HAND,0,1,nil) end
......
......@@ -29,7 +29,7 @@ function cm.actg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function cm.ckfil(c)
return c:IsSetCard(0x629) or (c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER))
return c:IsSetCard(0x3629) or (c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER))
end
function cm.aclimit(e,re,tp)
return re:GetHandler():IsCode(e:GetLabel())
......@@ -100,7 +100,7 @@ function cm.setfilter(c)
return c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER) and c:IsSSetable()
end
function cm.thfil1(c)
return c:IsSetCard(0x629) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function cm.thfil2(c)
return c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER) and c:IsAbleToHand()
......
......@@ -26,7 +26,7 @@ function cm.chlimit(e,ep,tp)
return tp==ep
end
function cm.ckfil(c)
return c:IsSetCard(0x629) or (c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER))
return c:IsSetCard(0x3629) or (c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER))
end
function cm.thfil1(c)
return c:IsAbleToHand() and (c:IsType(TYPE_TRAP) and c:IsType(TYPE_COUNTER))
......@@ -39,7 +39,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<10 then return end
Duel.ConfirmDecktop(tp,10)
local g=Duel.GetDecktopGroup(tp,10)
local count=g:FilterCount(cm.ckfil,nil)--counter and 0x629
local count=g:FilterCount(cm.ckfil,nil)--counter and 0x3629
local cg=Group.CreateGroup()
if count>=0 and g:FilterCount(cm.thfil1,nil)>0 then
local tc=g:FilterSelect(tp,cm.thfil1,1,1,nil):GetFirst()
......@@ -69,7 +69,7 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
end
--e2
function cm.setf(c)
return c:IsSSetable() and c:IsSetCard(0x629) and c:IsType(TYPE_MONSTER)
return c:IsSSetable() and c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER)
end
function cm.extra3(e,tp)
if Duel.IsExistingMatchingCard(cm.setf,tp,LOCATION_GRAVE,0,2,nil) then
......
......@@ -98,7 +98,7 @@ function cm.extra5(e,tp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_DISABLE)
e1:SetTargetRange(1,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x629))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3629))
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(c)
......@@ -111,5 +111,5 @@ end
function cm.dxefil(e,ct)
local p=e:GetHandler():GetControler()
local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
return p==tp and te:GetHandler():IsSetCard(0x629)
return p==tp and te:GetHandler():IsSetCard(0x3629)
end
\ No newline at end of file
......@@ -42,7 +42,7 @@ function cm.initial_effect(c)
end
--e1
function cm.setfilter(c)
return c:IsSetCard(0x629) and c:IsType(TYPE_MONSTER)
return c:IsSetCard(0x3629) and c:IsType(TYPE_MONSTER)
end
function cm.actg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,LOCATION_SZONE,0,1,nil) and Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_DECK,0,3,nil) 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