Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
17d4c9af
Commit
17d4c9af
authored
Jul 20, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
set atk to x and sp_summon: EFFECT_SET_ATTACK
parent
46ca80ab
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
30 deletions
+79
-30
script/c1372887.lua
script/c1372887.lua
+35
-20
script/c23434538.lua
script/c23434538.lua
+40
-6
script/c31801517.lua
script/c31801517.lua
+1
-1
script/c67696066.lua
script/c67696066.lua
+2
-2
script/constant.lua
script/constant.lua
+1
-1
No files found.
script/c1372887.lua
View file @
17d4c9af
...
@@ -9,38 +9,53 @@ function c1372887.initial_effect(c)
...
@@ -9,38 +9,53 @@ function c1372887.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c1372887
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1372887
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetLabel
(
0
)
e1
:
SetCondition
(
c1372887
.
drcon1
)
e1
:
SetCondition
(
c1372887
.
drcon
)
e1
:
SetOperation
(
c1372887
.
drop1
)
e1
:
SetOperation
(
c1372887
.
drop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_
CHAIN_SOLVE
D
)
e2
:
SetCode
(
EVENT_
TO_HAN
D
)
e2
:
Set
LabelObject
(
e1
)
e2
:
Set
Condition
(
c1372887
.
regcon
)
e2
:
SetOperation
(
c1372887
.
r
st
)
e2
:
SetOperation
(
c1372887
.
r
egop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetCondition
(
c1372887
.
drcon2
)
e3
:
SetOperation
(
c1372887
.
drop2
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
function
c1372887
.
cfilter
(
c
,
tp
)
function
c1372887
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
1
-
tp
)
and
not
c
:
IsReason
(
REASON_DRAW
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_GRAVE
)
return
c
:
IsControler
(
1
-
tp
)
and
not
c
:
IsReason
(
REASON_DRAW
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
+
LOCATION_GRAVE
)
end
end
function
c1372887
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1372887
.
drcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c1372887
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c1372887
.
cfilter
,
1
,
nil
,
tp
)
and
(
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
))
end
function
c1372887
.
drop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
1372887
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
function
c1372887
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c1372887
.
cfilter
,
1
,
nil
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
1372887
)
==
0
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
end
function
c1372887
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
1372887
,
RESET_CHAIN
,
0
,
1
)
end
end
function
c1372887
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1372887
.
drcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabel
()
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
1372887
)
>
0
Duel
.
Hint
(
HINT_CARD
,
0
,
1372887
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
if
Duel
.
GetCurrentChain
()
>
0
then
e
:
SetLabel
(
1
)
end
end
end
end
function
c1372887
.
rst
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1372887
.
drop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetLabelObject
():
SetLabel
(
0
)
Duel
.
ResetFlagEffect
(
tp
,
1372887
)
Duel
.
Hint
(
HINT_CARD
,
0
,
1372887
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
script/c23434538.lua
View file @
17d4c9af
...
@@ -17,19 +17,53 @@ function c23434538.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -17,19 +17,53 @@ function c23434538.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c23434538
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23434538
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetOperation
(
c23434538
.
drop
)
e1
:
SetCondition
(
c23434538
.
drcon1
)
e1
:
SetOperation
(
c23434538
.
drop1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--sp_summon effect
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c23434538
.
regcon
)
e2
:
SetOperation
(
c23434538
.
regop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e3
:
SetCondition
(
c23434538
.
drcon2
)
e3
:
SetOperation
(
c23434538
.
drop2
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
function
c23434538
.
filter
(
c
,
sp
)
function
c23434538
.
filter
(
c
,
sp
)
return
c
:
GetSummonPlayer
()
==
sp
return
c
:
GetSummonPlayer
()
==
sp
end
end
function
c23434538
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23434538
.
drcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c23434538
.
filter
,
1
,
nil
,
1
-
tp
)
then
return
eg
:
IsExists
(
c23434538
.
filter
,
1
,
nil
,
1
-
tp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
and
(
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
or
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
))
end
end
function
c23434538
.
drop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
function
c23434538
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c23434538
.
filter
,
1
,
nil
,
1
-
tp
)
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIONS
)
and
not
re
:
IsHasType
(
EFFECT_TYPE_CONTINUOUS
)
end
function
c23434538
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RegisterFlagEffect
(
tp
,
23434538
,
RESET_CHAIN
,
0
,
1
)
end
function
c23434538
.
drcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFlagEffect
(
tp
,
23434538
)
>
0
end
function
c23434538
.
drop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
n
=
Duel
.
GetFlagEffect
(
tp
,
23434538
)
Duel
.
ResetFlagEffect
(
tp
,
23434538
)
Duel
.
Draw
(
tp
,
n
,
REASON_EFFECT
)
end
end
script/c31801517.lua
View file @
17d4c9af
...
@@ -91,7 +91,7 @@ function c31801517.spop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -91,7 +91,7 @@ function c31801517.spop2(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
c
:
GetAttack
()
*
2
)
e1
:
SetValue
(
c
:
GetAttack
()
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
script/c67696066.lua
View file @
17d4c9af
...
@@ -32,13 +32,13 @@ function c67696066.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,13 +32,13 @@ function c67696066.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
0
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENCE
_FINAL
)
e2
:
SetCode
(
EFFECT_SET_DEFENCE
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
Duel
.
SpecialSummonComplete
()
Duel
.
SpecialSummonComplete
()
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
script/constant.lua
View file @
17d4c9af
...
@@ -226,7 +226,7 @@ RESET_MSCHANGE =0x08000000 --从怪兽区到魔法区,或者从魔法区到
...
@@ -226,7 +226,7 @@ RESET_MSCHANGE =0x08000000 --从怪兽区到魔法区,或者从魔法区到
EFFECT_TYPE_SINGLE
=
0x0001
--自己状态变化时触发
EFFECT_TYPE_SINGLE
=
0x0001
--自己状态变化时触发
EFFECT_TYPE_FIELD
=
0x0002
--场上所有卡状态变化时触发
EFFECT_TYPE_FIELD
=
0x0002
--场上所有卡状态变化时触发
EFFECT_TYPE_EQUIP
=
0x0004
--装备效果
EFFECT_TYPE_EQUIP
=
0x0004
--装备效果
EFFECT_TYPE_ACTIONS
=
0x0008
--触发型,以下
的預設
屬性(对峙的G)
EFFECT_TYPE_ACTIONS
=
0x0008
--触发型,以下
類型會自動添加此
屬性(对峙的G)
EFFECT_TYPE_ACTIVATE
=
0x0010
--魔陷发动
EFFECT_TYPE_ACTIVATE
=
0x0010
--魔陷发动
EFFECT_TYPE_FLIP
=
0x0020
--翻转效果
EFFECT_TYPE_FLIP
=
0x0020
--翻转效果
EFFECT_TYPE_IGNITION
=
0x0040
--起动效果
EFFECT_TYPE_IGNITION
=
0x0040
--起动效果
...
...
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