Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
List
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
Reinen
ygopro-scripts
Commits
f3bd1fa8
Commit
f3bd1fa8
authored
Jun 05, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
10ed38bb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
14 deletions
+25
-14
c23851033.lua
c23851033.lua
+10
-1
c79323590.lua
c79323590.lua
+10
-1
c82003859.lua
c82003859.lua
+5
-12
No files found.
c23851033.lua
View file @
f3bd1fa8
...
@@ -21,6 +21,14 @@ function c23851033.initial_effect(c)
...
@@ -21,6 +21,14 @@ function c23851033.initial_effect(c)
e2
:
SetCost
(
c23851033
.
costchk
)
e2
:
SetCost
(
c23851033
.
costchk
)
e2
:
SetOperation
(
c23851033
.
costop
)
e2
:
SetOperation
(
c23851033
.
costop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--accumulate
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
0x10000000
+
23851033
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
0
,
1
)
c
:
RegisterEffect
(
e3
)
end
end
function
c23851033
.
filter
(
c
)
function
c23851033
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToHand
()
...
@@ -39,7 +47,8 @@ function c23851033.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,7 +47,8 @@ function c23851033.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
end
end
function
c23851033
.
costchk
(
e
,
te_or_c
,
tp
)
function
c23851033
.
costchk
(
e
,
te_or_c
,
tp
)
return
Duel
.
CheckLPCost
(
tp
,
500
)
local
ct
=
Duel
.
GetFlagEffect
(
tp
,
23851033
)
return
Duel
.
CheckLPCost
(
tp
,
ct
*
500
)
end
end
function
c23851033
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23851033
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
PayLPCost
(
tp
,
500
)
...
...
c79323590.lua
View file @
f3bd1fa8
...
@@ -35,12 +35,21 @@ function c79323590.initial_effect(c)
...
@@ -35,12 +35,21 @@ function c79323590.initial_effect(c)
local
e6
=
e3
:
Clone
()
local
e6
=
e3
:
Clone
()
e6
:
SetCode
(
EFFECT_SSET_COST
)
e6
:
SetCode
(
EFFECT_SSET_COST
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
--accumulate
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
)
e7
:
SetCode
(
0x10000000
+
79323590
)
e7
:
SetRange
(
LOCATION_SZONE
)
e7
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e7
:
SetTargetRange
(
1
,
1
)
c
:
RegisterEffect
(
e7
)
end
end
function
c79323590
.
actarget
(
e
,
te
,
tp
)
function
c79323590
.
actarget
(
e
,
te
,
tp
)
return
te
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
return
te
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
end
end
function
c79323590
.
costchk
(
e
,
te_or_c
,
tp
)
function
c79323590
.
costchk
(
e
,
te_or_c
,
tp
)
return
Duel
.
CheckLPCost
(
tp
,
500
)
local
ct
=
Duel
.
GetFlagEffect
(
tp
,
79323590
)
return
Duel
.
CheckLPCost
(
tp
,
ct
*
500
)
end
end
function
c79323590
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79323590
.
costop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
79323590
)
Duel
.
Hint
(
HINT_CARD
,
0
,
79323590
)
...
...
c82003859.lua
View file @
f3bd1fa8
...
@@ -12,29 +12,22 @@ function c82003859.initial_effect(c)
...
@@ -12,29 +12,22 @@ function c82003859.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetCondition
(
c82003859
.
atcon
)
e2
:
SetCost
(
c82003859
.
atcost
)
e2
:
SetCost
(
c82003859
.
atcost
)
e2
:
SetOperation
(
c82003859
.
atop
)
e2
:
SetOperation
(
c82003859
.
atop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--accumulate
--accumulate
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
82003859
)
e3
:
SetCode
(
0x10000000
+
82003859
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
1
,
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c82003859
.
filter
(
c
,
fid
)
return
c
:
IsHasEffect
(
82003859
)
and
c
:
GetFieldID
()
<
fid
end
function
c82003859
.
atcon
(
e
)
return
not
Duel
.
IsExistingMatchingCard
(
c82003859
.
filter
,
0
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
:
GetHandler
():
GetFieldID
())
end
function
c82003859
.
atcost
(
e
,
c
,
tp
)
function
c82003859
.
atcost
(
e
,
c
,
tp
)
local
ct
=
Duel
.
Get
MatchingGroupCount
(
Card
.
IsHasEffect
,
0
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
,
82003859
)
local
ct
=
Duel
.
Get
FlagEffect
(
tp
,
82003859
)
return
Duel
.
CheckLPCost
(
tp
,
ct
*
500
)
return
Duel
.
CheckLPCost
(
tp
,
ct
*
500
)
end
end
function
c82003859
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82003859
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsHasEffect
,
0
,
LOCATION_SZONE
,
LOCATION_SZONE
,
nil
,
82003859
)
Duel
.
PayLPCost
(
tp
,
500
)
Duel
.
PayLPCost
(
tp
,
ct
*
500
)
end
end
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