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
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-scripts
Commits
563cb660
Commit
563cb660
authored
Aug 07, 2016
by
mercury233
Committed by
DailyShana
Aug 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add hint for Chaofeng, Phantom of the Yang Zing etc (#526)
parent
dfe87223
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
c17760003.lua
c17760003.lua
+3
-0
c19048328.lua
c19048328.lua
+24
-0
c37192109.lua
c37192109.lua
+1
-0
c93717133.lua
c93717133.lua
+1
-0
No files found.
c17760003.lua
View file @
563cb660
...
@@ -49,6 +49,7 @@ function c17760003.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,6 +49,7 @@ function c17760003.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c17760003
.
operation1
)
e1
:
SetOperation
(
c17760003
.
operation1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
17760003
,
3
))
end
end
if
bit
.
band
(
att
,
ATTRIBUTE_WATER
)
~=
0
then
if
bit
.
band
(
att
,
ATTRIBUTE_WATER
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -63,6 +64,7 @@ function c17760003.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,6 +64,7 @@ function c17760003.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c17760003
.
operation2
)
e1
:
SetOperation
(
c17760003
.
operation2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
17760003
,
4
))
end
end
if
bit
.
band
(
att
,
ATTRIBUTE_DARK
)
~=
0
then
if
bit
.
band
(
att
,
ATTRIBUTE_DARK
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -77,6 +79,7 @@ function c17760003.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,6 +79,7 @@ function c17760003.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetOperation
(
c17760003
.
operation3
)
e1
:
SetOperation
(
c17760003
.
operation3
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
17760003
,
5
))
end
end
end
end
function
c17760003
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c17760003
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c19048328.lua
View file @
563cb660
...
@@ -20,6 +20,7 @@ function c19048328.initial_effect(c)
...
@@ -20,6 +20,7 @@ function c19048328.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--search
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
19048328
,
0
))
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e3
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
...
@@ -30,6 +31,7 @@ function c19048328.initial_effect(c)
...
@@ -30,6 +31,7 @@ function c19048328.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--spsummon
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
19048328
,
1
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_DESTROYED
)
e4
:
SetCode
(
EVENT_DESTROYED
)
...
@@ -66,6 +68,28 @@ function c19048328.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,6 +68,28 @@ function c19048328.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
c19048328
.
aclimit
)
e1
:
SetValue
(
c19048328
.
aclimit
)
e1
:
SetLabelObject
(
e
:
GetLabelObject
())
e1
:
SetLabelObject
(
e
:
GetLabelObject
())
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
att
=
e
:
GetLabelObject
():
GetLabel
()
if
bit
.
band
(
att
,
ATTRIBUTE_EARTH
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
19048328
,
2
))
end
if
bit
.
band
(
att
,
ATTRIBUTE_WATER
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
19048328
,
3
))
end
if
bit
.
band
(
att
,
ATTRIBUTE_FIRE
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
19048328
,
4
))
end
if
bit
.
band
(
att
,
ATTRIBUTE_WIND
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
19048328
,
5
))
end
if
bit
.
band
(
att
,
ATTRIBUTE_LIGHT
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
19048328
,
6
))
end
if
bit
.
band
(
att
,
ATTRIBUTE_DARK
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
19048328
,
7
))
end
if
bit
.
band
(
att
,
ATTRIBUTE_DEVINE
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
19048328
,
8
))
end
end
end
function
c19048328
.
aclimit
(
e
,
re
,
tp
)
function
c19048328
.
aclimit
(
e
,
re
,
tp
)
local
att
=
e
:
GetLabelObject
():
GetLabel
()
local
att
=
e
:
GetLabelObject
():
GetLabel
()
...
...
c37192109.lua
View file @
563cb660
...
@@ -11,6 +11,7 @@ function c37192109.initial_effect(c)
...
@@ -11,6 +11,7 @@ function c37192109.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
0x1e0
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c37192109
.
rmtg
)
e1
:
SetTarget
(
c37192109
.
rmtg
)
e1
:
SetOperation
(
c37192109
.
rmop
)
e1
:
SetOperation
(
c37192109
.
rmop
)
...
...
c93717133.lua
View file @
563cb660
...
@@ -30,6 +30,7 @@ end
...
@@ -30,6 +30,7 @@ end
function
c93717133
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
function
c93717133
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
SelectReleaseGroup
(
c
:
GetControler
(),
Card
.
IsAttackAbove
,
2
,
2
,
nil
,
2000
)
local
g
=
Duel
.
SelectReleaseGroup
(
c
:
GetControler
(),
Card
.
IsAttackAbove
,
2
,
2
,
nil
,
2000
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x4fc0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
93717133
,
1
))
end
end
function
c93717133
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93717133
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
...
...
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