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
f0dc672b
Commit
f0dc672b
authored
Nov 21, 2020
by
mercury233
Committed by
GitHub
Nov 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redefine REASON_LOST_TARGET (#1509)
parent
3c2a7690
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
c90673413.lua
c90673413.lua
+1
-1
constant.lua
constant.lua
+2
-2
No files found.
c90673413.lua
View file @
f0dc672b
...
@@ -65,7 +65,7 @@ end
...
@@ -65,7 +65,7 @@ end
function
c90673413
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90673413
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetPreviousEquipTarget
()
local
tc
=
c
:
GetPreviousEquipTarget
()
return
c
:
IsReason
(
REASON_LOST_TARGET
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
tc
:
IsLocation
(
LOCATION_OVERLAY
)
return
c
:
IsReason
(
REASON_LOST_TARGET
)
and
tc
:
IsLocation
(
LOCATION_OVERLAY
)
end
end
function
c90673413
.
atkfilter
(
c
)
function
c90673413
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
...
...
constant.lua
View file @
f0dc672b
...
@@ -99,7 +99,7 @@ REASON_BATTLE =0x20 --战斗破坏
...
@@ -99,7 +99,7 @@ REASON_BATTLE =0x20 --战斗破坏
REASON_EFFECT
=
0x40
--效果
REASON_EFFECT
=
0x40
--效果
REASON_COST
=
0x80
--用於代價或無法支付代價而破壞
REASON_COST
=
0x80
--用於代價或無法支付代價而破壞
REASON_ADJUST
=
0x100
--调整(御前试合)
REASON_ADJUST
=
0x100
--调整(御前试合)
REASON_LOST_TARGET
=
0x200
--失去装备对象
(被破坏)/失去叠放对象(不是被破坏)
REASON_LOST_TARGET
=
0x200
--失去装备对象
REASON_RULE
=
0x400
--规则
REASON_RULE
=
0x400
--规则
REASON_SPSUMMON
=
0x800
--特殊召唤
REASON_SPSUMMON
=
0x800
--特殊召唤
REASON_DISSUMMON
=
0x1000
--召唤失败
REASON_DISSUMMON
=
0x1000
--召唤失败
...
@@ -115,7 +115,7 @@ REASON_XYZ =0x200000 --用於超量召喚
...
@@ -115,7 +115,7 @@ REASON_XYZ =0x200000 --用於超量召喚
REASON_REPLACE
=
0x1000000
--代替
REASON_REPLACE
=
0x1000000
--代替
REASON_DRAW
=
0x2000000
--抽卡
REASON_DRAW
=
0x2000000
--抽卡
REASON_REDIRECT
=
0x4000000
--改变去向(大宇宙,带菌等)
REASON_REDIRECT
=
0x4000000
--改变去向(大宇宙,带菌等)
REASON_
REVEAL
=
0x8000000
--翻开卡组(森罗)
REASON_
LOST_OVERLAY
=
0x8000000
--超量素材随着超量怪兽离场
REASON_LINK
=
0x10000000
--用于连接召唤
REASON_LINK
=
0x10000000
--用于连接召唤
--Location Reason
--Location Reason
LOCATION_REASON_TOFIELD
=
0x1
--Duel.GetLocationCount()預設值,凱薩競技場
LOCATION_REASON_TOFIELD
=
0x1
--Duel.GetLocationCount()預設值,凱薩競技場
...
...
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