Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
specials
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
JoyJ
specials
Commits
133c2f1f
Commit
133c2f1f
authored
Feb 16, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/purerosefallen/specials
parents
6db180e1
4d016d67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
62 deletions
+37
-62
genkai-toppa
genkai-toppa
+1
-1
wanning/special.lua
wanning/special.lua
+36
-61
No files found.
genkai-toppa
@
76ce0e88
Subproject commit
d2798cde4002a78fc85d642b546ec53a70bf7125
Subproject commit
76ce0e888c2055cb0d15b4f61b569f227c1b89ad
wanning/special.lua
View file @
133c2f1f
...
...
@@ -83,6 +83,21 @@ standbyPhaseSkill(48356796, function(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Draw
(
tp
,
2
,
REASON_RULE
)
end
)
phaseSkill
(
22959079
,
PHASE_STANDBY
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a1
,
a2
,
a3
=
Duel
.
TossCoin
(
tp
,
3
)
local
result
=
(
a1
+
a2
+
a3
)
*
2
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
local
g2
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
num
=#
g
if
num
>
result
then
num
=
result
end
local
rg
=
g
:
RandomSelect
(
tp
,
num
)
num
=#
g2
if
num
>
result
then
num
=
result
end
local
rg2
=
g2
:
RandomSelect
(
tp
,
num
)
Duel
.
Remove
(
rg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
rg2
,
POS_FACEUP
,
REASON_EFFECT
)
end
)
standbyPhaseSkill
(
2295831
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
@@ -184,11 +199,11 @@ addSkill(9952083, function(e1)
e1
:
SetCode
(
EFFECT_SET_SUMMON_COUNT_LIMIT
)
e1
:
SetProperty
(
e1
:
GetProperty
()
|
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
3
)
e1
:
SetValue
(
0xff
)
end
)
local
function
destroyReplaceFilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsReason
(
REASON_EFFECT
)
return
c
:
IsControler
(
tp
)
and
(
c
:
IsReason
(
REASON_EFFECT
)
or
c
:
IsReason
(
REASON_BATTLE
)
)
end
addSkill
(
47529357
,
function
(
e1
)
...
...
@@ -272,66 +287,25 @@ function c13171876_op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SetLP
(
tp
,
lp
)
end
--[[oneTimeSkill(66957584,function(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_DECK+LOCATION_HAND,0)
for c in aux.Next(g) do
c66957584_reg(c)
end
end)]]
function
c66957584_reg
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
)
e1
:
SetDescription
(
aux
.
Stringid
(
7337976
,
1
))
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c66957584_con
)
e1
:
SetTarget
(
c66957584_tg
)
e1
:
SetOperation
(
c66957584_op
)
end
function
c66957584_con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
87654321
)
==
0
end
function
c66957584_tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGrave
()
and
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c66957584_op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoGrave
(
c
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCategory
(
CATEGORY_TOHAND
)
e1
:
SetDescription
(
aux
.
Stringid
(
1264319
,
1
))
e1
:
SetRange
(
LOCATION_GRAVE
)
e1
:
SetCondition
(
aux
.
exccon
)
e1
:
SetTarget
(
c66957584_backtg
)
e1
:
SetOperation
(
c66957584_backop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
1
)
if
Duel
.
Draw
(
tp
,
1
)
>
0
then
Duel
.
RegisterFlagEffect
(
g
:
GetFirst
(),
87654321
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
oneTimeSkill
(
66957584
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
i
=
1
,
3
do
local
tc
=
Duel
.
CreateToken
(
tp
,
66957584
)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP_ATTACK
,
true
)
end
end
function
c66957584_backtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
)
function
c66957584_backop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
addSkill
(
66957584
,
function
(
e1
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetProperty
(
e1
:
GetProperty
()
|
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetCondition
(
function
(
e
)
return
Duel
.
GetTurnPlayer
()
==
e
:
GetHandlerPlayer
()
end
)
e1
:
SetValue
(
function
(
e
,
re
,
tp
)
return
re
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
end
)
end
)
oneTimeSkill
(
21082832
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
i
=
1
,
5
do
...
...
@@ -456,7 +430,7 @@ function c72283691_atkop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetAttacker
()
destroyGold
(
tc
)
end
--[[
wrapDeckSkill(72283691, function(e4)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_CHAINING)
...
...
@@ -473,6 +447,7 @@ function c72283691_chainop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
destroyGold(tc)
end
]]
local
function
initialize
()
local
skillSelections
=
{}
...
...
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