Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-2pick
Commits
88b5ee68
Commit
88b5ee68
authored
Sep 14, 2018
by
wind2009
Committed by
GitHub
Sep 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shadoll Event
parent
551d739e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
12 deletions
+49
-12
2pick/pick.lua
2pick/pick.lua
+49
-12
No files found.
2pick/pick.lua
View file @
88b5ee68
...
@@ -229,18 +229,30 @@ function Auxiliary.StartPick(e)
...
@@ -229,18 +229,30 @@ function Auxiliary.StartPick(e)
end
end
end
end
-- -- World Cup / Additional Picks
-- Shadoll Additional Picks
-- for p=0,1 do
for
p
=
0
,
1
do
-- if Duel.IsPlayerNeedToPickDeck(p) then
if
Duel
.
IsPlayerNeedToPickDeck
(
p
)
then
-- Duel.Hint(HINT_CARD,p,72332074)
Duel
.
Hint
(
HINT_CARD
,
p
,
86938484
)
-- local ng=Group.CreateGroup()
local
ng
=
Group
.
CreateGroup
()
-- local card1=Duel.CreateToken(p,72332074)
local
card1
=
Duel
.
CreateToken
(
p
,
86938484
)
-- local card2=Duel.CreateToken(p,72332074)
local
card2
=
Duel
.
CreateToken
(
p
,
86938484
)
-- ng:AddCard(card1)
local
card3
=
Duel
.
CreateToken
(
p
,
74822425
)
-- ng:AddCard(card2)
local
card4
=
Duel
.
CreateToken
(
p
,
19261966
)
-- Duel.SendtoDeck(ng,nil,0,REASON_RULE)
local
card5
=
Duel
.
CreateToken
(
p
,
20366274
)
-- end
local
card6
=
Duel
.
CreateToken
(
p
,
48424886
)
-- end
local
card7
=
Duel
.
CreateToken
(
p
,
74009824
)
local
card8
=
Duel
.
CreateToken
(
p
,
94977269
)
ng
:
AddCard
(
card1
)
ng
:
AddCard
(
card2
)
ng
:
AddCard
(
card3
)
ng
:
AddCard
(
card4
)
ng
:
AddCard
(
card5
)
ng
:
AddCard
(
card6
)
ng
:
AddCard
(
card7
)
ng
:
AddCard
(
card8
)
Duel
.
SendtoDeck
(
ng
,
nil
,
0
,
REASON_RULE
)
end
end
Auxiliary
.
SaveDeck
()
Auxiliary
.
SaveDeck
()
for
p
=
0
,
1
do
for
p
=
0
,
1
do
...
@@ -267,6 +279,8 @@ function Auxiliary.Load2PickRule()
...
@@ -267,6 +279,8 @@ function Auxiliary.Load2PickRule()
--Skill DrawSense Specials
--Skill DrawSense Specials
Auxiliary
.
Load_Skill_DrawSense_Rule
()
Auxiliary
.
Load_Skill_DrawSense_Rule
()
--Shadoll Event
Auxiliary
.
Load_Shadow_Rule
()
end
end
function
Auxiliary
.
Load_Skill_DrawSense_Rule
()
function
Auxiliary
.
Load_Skill_DrawSense_Rule
()
...
@@ -341,7 +355,30 @@ function Auxiliary.Skill_DrawSense_Operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -341,7 +355,30 @@ function Auxiliary.Skill_DrawSense_Operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
Auxiliary
.
Load_Shadow_Rule
()
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetDescription
(
1166
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetRange
(
LOCATION_EXTRA
)
e1
:
SetCondition
(
Auxiliary
.
LinkCondition
(
nil
,
2
,
2
,
nil
))
e1
:
SetTarget
(
Auxiliary
.
LinkTarget
(
nil
,
2
,
2
,
nil
))
e1
:
SetOperation
(
Auxiliary
.
LinkOperation
(
nil
,
2
,
2
,
nil
))
e1
:
SetValue
(
SUMMON_TYPE_LINK
)
local
e2
=
Effect
.
GlobalEffect
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetTargetRange
(
LOCATION_EXTRA
,
0
)
e2
:
SetTarget
(
Auxiliary
.
IsConstruct
)
e2
:
SetLabelObject
(
e1
)
Duel
.
RegisterEffect
(
e2
,
0
)
return
end
function
Auxiliary
.
IsConstruct
(
e
,
c
)
return
c
:
IsCode
(
86938484
)
end
-- function Auxiliary.Load_Skill_DestinyDraw_Rule()
-- function Auxiliary.Load_Skill_DestinyDraw_Rule()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment