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
8b4ad2c4
Commit
8b4ad2c4
authored
Feb 15, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/purerosefallen/specials
parents
a93149f1
2c5a1e2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
60 deletions
+19
-60
wanning/special.lua
wanning/special.lua
+19
-60
No files found.
wanning/special.lua
View file @
8b4ad2c4
...
@@ -199,11 +199,11 @@ addSkill(9952083, function(e1)
...
@@ -199,11 +199,11 @@ addSkill(9952083, function(e1)
e1
:
SetCode
(
EFFECT_SET_SUMMON_COUNT_LIMIT
)
e1
:
SetCode
(
EFFECT_SET_SUMMON_COUNT_LIMIT
)
e1
:
SetProperty
(
e1
:
GetProperty
()
|
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
e1
:
GetProperty
()
|
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
3
)
e1
:
SetValue
(
0xff
)
end
)
end
)
local
function
destroyReplaceFilter
(
c
,
tp
)
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
end
addSkill
(
47529357
,
function
(
e1
)
addSkill
(
47529357
,
function
(
e1
)
...
@@ -287,66 +287,25 @@ function c13171876_op(e,tp,eg,ep,ev,re,r,rp)
...
@@ -287,66 +287,25 @@ function c13171876_op(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SetLP
(
tp
,
lp
)
Duel
.
SetLP
(
tp
,
lp
)
end
end
--[[oneTimeSkill(66957584,function(e,tp,eg,ep,ev,re,r,rp)
oneTimeSkill
(
66957584
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local g=Duel.GetFieldGroup(tp,LOCATION_DECK+LOCATION_HAND,0)
for
i
=
1
,
3
do
for c in aux.Next(g) do
local
tc
=
Duel
.
CreateToken
(
tp
,
66957584
)
c66957584_reg(c)
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP_ATTACK
,
true
)
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
end
end
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
function
c66957584_backop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
addSkill
(
66957584
,
function
(
e1
)
local
c
=
e
:
GetHandler
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
if
c
:
IsRelateToEffect
(
e
)
then
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
e1
:
SetProperty
(
e1
:
GetProperty
()
|
EFFECT_FLAG_PLAYER_TARGET
)
end
e1
:
SetTargetRange
(
0
,
1
)
end
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
)
oneTimeSkill
(
21082832
,
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
for
i
=
1
,
5
do
for
i
=
1
,
5
do
...
...
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