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
八宫一月
ygopro-scripts
Commits
47793e3f
Commit
47793e3f
authored
Jun 26, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cfdf07eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
c19748583.lua
c19748583.lua
+3
-4
c59123194.lua
c59123194.lua
+3
-4
c90673413.lua
c90673413.lua
+1
-1
constant.lua
constant.lua
+1
-1
No files found.
c19748583.lua
View file @
47793e3f
...
...
@@ -87,10 +87,9 @@ function c19748583.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c19748583
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ec
=
c
:
GetEquipTarget
()
if
not
ec
then
return
end
local
tc
=
ec
:
GetBattleTarget
()
if
tc
and
tc
:
IsRelateToBattle
()
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
c
:
GetEquipTarget
():
GetBattleTarget
()
if
tc
:
IsRelateToBattle
()
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
end
...
...
c59123194.lua
View file @
47793e3f
...
...
@@ -50,11 +50,10 @@ function c59123194.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c59123194
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
local
dam
=
bc
:
GetTextAttack
()
if
chk
==
0
then
return
dam
>
0
end
Duel
.
SetTargetCard
(
bc
)
local
dam
=
bc
:
GetAttack
()
if
dam
<
0
then
dam
=
0
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
dam
)
...
...
@@ -63,7 +62,7 @@ function c59123194.damop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
dam
=
tc
:
GetAttack
()
local
dam
=
tc
:
Get
Text
Attack
()
if
dam
<
0
then
dam
=
0
end
Duel
.
Damage
(
p
,
dam
,
REASON_EFFECT
)
end
...
...
c90673413.lua
View file @
47793e3f
...
...
@@ -65,7 +65,7 @@ end
function
c90673413
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetPreviousEquipTarget
()
return
c
:
IsReason
(
REASON_LOST_TARGET
)
and
tc
and
tc
:
IsLocation
(
LOCATION_OVERLAY
)
return
c
:
IsReason
(
REASON_LOST_TARGET
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
tc
:
IsLocation
(
LOCATION_OVERLAY
)
end
function
c90673413
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
...
...
constant.lua
View file @
47793e3f
...
...
@@ -95,7 +95,7 @@ REASON_BATTLE =0x20 --战斗破坏
REASON_EFFECT
=
0x40
--效果
REASON_COST
=
0x80
--用於代價或無法支付代價而破壞
REASON_ADJUST
=
0x100
--调整(御前试合)
REASON_LOST_TARGET
=
0x200
--失去
效果对象
REASON_LOST_TARGET
=
0x200
--失去
装备对象(被破坏)/失去叠放对象(不是被破坏)
REASON_RULE
=
0x400
--规则
REASON_SPSUMMON
=
0x800
--特殊召唤
REASON_DISSUMMON
=
0x1000
--召唤失败
...
...
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