Commit b9da58d4 authored by REIKAI's avatar REIKAI 💬

update 2pick function

parent 0fd70d33
Pipeline #20340 passed with stages
in 27 minutes and 7 seconds
...@@ -399,49 +399,51 @@ function this.custompick(mainc,extrac,packc) ...@@ -399,49 +399,51 @@ function this.custompick(mainc,extrac,packc)
end end
function this.setOverride() function this.setOverride()
Card.IsSetCard=aux.TRUE Card.IsSetCard=aux.TRUE
Card.IsPreviousSetCard=aux.TRUE Card.IsPreviousSetCard=aux.TRUE
Card.IsFusionSetCard=aux.TRUE Card.IsFusionSetCard=aux.TRUE
Card.IsLinkSetCard=aux.TRUE Card.IsLinkSetCard=aux.TRUE
Card.IsOriginalSetCard=aux.TRUE Card.IsOriginalSetCard=aux.TRUE
Card.IsFusionSetCard=aux.TRUE Card.IsFusionSetCard=aux.TRUE
aux.IsMaterialListSetCard=aux.TRUE aux.IsMaterialListSetCard=aux.TRUE
rk.check=aux.TRUE
aux.IsCodeListed=aux.TRUE
end end
function this.GetChainInfo(ev,...) function this.GetChainInfo(ev,...)
local code_list={...} local code_list={...}
local chaininfolist={} local chaininfolist={}
for i,v in ipairs(code_list) do for i,v in ipairs(code_list) do
if v == CHAININFO_TRIGGERING_RACE then if v == CHAININFO_TRIGGERING_RACE then
table.insert(chaininfolist,RACE_ALL) table.insert(chaininfolist,RACE_ALL)
elseif v == CHAININFO_TRIGGERING_ATTRIBUTE then elseif v == CHAININFO_TRIGGERING_ATTRIBUTE then
table.insert(chaininfolist,0x7f) table.insert(chaininfolist,0x7f)
else else
table.insert(chaininfolist,this.GetChainInfotmp(ev,v)) table.insert(chaininfolist,this.GetChainInfotmp(ev,v))
end end
end end
return table.unpack(chaininfolist) return table.unpack(chaininfolist)
end end
function this.raceOverride() function this.raceOverride()
Card.IsRace=function(c) return c and c:IsType(TYPE_MONSTER) end Card.IsRace=function(c) return c and c:IsType(TYPE_MONSTER) end
Card.IsLinkRace=function(c) return c and c:IsType(TYPE_MONSTER) end Card.IsLinkRace=function(c) return c and c:IsType(TYPE_MONSTER) end
Card.GetRace=function(c) if c and c:IsType(TYPE_MONSTER) then return RACE_ALL end return nil end Card.GetRace=function(c) if c and c:IsType(TYPE_MONSTER) then return RACE_ALL end return nil end
Card.GetLinkRace=function(c) if c and c:IsType(TYPE_MONSTER) then return RACE_ALL end return nil end Card.GetLinkRace=function(c) if c and c:IsType(TYPE_MONSTER) then return RACE_ALL end return nil end
Card.GetOriginalRace=function(c) if c and c:GetOriginalType()&TYPE_MONSTER>0 then return RACE_ALL end return nil end Card.GetOriginalRace=function(c) if c and c:GetOriginalType()&TYPE_MONSTER>0 then return RACE_ALL end return nil end
Card.GetPreviousRaceOnField=function(c) if c and c:IsType(TYPE_MONSTER) then return RACE_ALL end return nil end Card.GetPreviousRaceOnField=function(c) if c and c:IsType(TYPE_MONSTER) then return RACE_ALL end return nil end
this.GetChainInfotmp=Duel.GetChainInfo this.GetChainInfotmp=Duel.GetChainInfo
Duel.GetChainInfo=this.GetChainInfo Duel.GetChainInfo=this.GetChainInfo
end end
function this.attrOverride() function this.attrOverride()
Card.IsAttribute=function(c) return c and c:IsType(TYPE_MONSTER) end Card.IsAttribute=function(c) return c and c:IsType(TYPE_MONSTER) end
Card.IsFusionAttribute=function(c) return c and c:IsType(TYPE_MONSTER) end Card.IsFusionAttribute=function(c) return c and c:IsType(TYPE_MONSTER) end
Card.IsLinkAttribute=function(c) return c and c:IsType(TYPE_MONSTER) end Card.IsLinkAttribute=function(c) return c and c:IsType(TYPE_MONSTER) end
Card.GetAttribute=function(c) if c and c:IsType(TYPE_MONSTER) then return 0x7f end return nil end Card.GetAttribute=function(c) if c and c:IsType(TYPE_MONSTER) then return 0x7f end return nil end
Card.GetFusionAttribute=function(c) if c and c:IsType(TYPE_MONSTER) then return 0x7f end return nil end Card.GetFusionAttribute=function(c) if c and c:IsType(TYPE_MONSTER) then return 0x7f end return nil end
Card.GetLinkAttribute=function(c) if c and c:IsType(TYPE_MONSTER) then return 0x7f end return nil end Card.GetLinkAttribute=function(c) if c and c:IsType(TYPE_MONSTER) then return 0x7f end return nil end
Card.GetOriginalAttribute=function(c) if c and c:GetOriginalType()&TYPE_MONSTER>0 then return 0x7f end return nil end Card.GetOriginalAttribute=function(c) if c and c:GetOriginalType()&TYPE_MONSTER>0 then return 0x7f end return nil end
Card.GetPreviousAttributeOnField=function(c) if c and c:GetOriginalType()&TYPE_MONSTER>0 then return 0x7f end return nil end Card.GetPreviousAttributeOnField=function(c) if c and c:GetOriginalType()&TYPE_MONSTER>0 then return 0x7f end return nil end
end end
function this.ritualEnhance(c) function this.ritualEnhance(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