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
c25f01d1
Commit
c25f01d1
authored
Apr 21, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add EFFECT_SET_BATTLE_ATTACK and EFFECT_SET_BATTLE_DEFENSE
parent
a1410403
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
c54773234.lua
c54773234.lua
+4
-12
constant.lua
constant.lua
+2
-0
No files found.
c54773234.lua
View file @
c25f01d1
...
...
@@ -40,17 +40,13 @@ function c54773234.activate(e,tp,eg,ep,ev,re,r,rp)
if
a
:
IsRelateToBattle
()
then
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e4
:
SetCode
(
EFFECT_SET_BATTLE_ATTACK
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e4
:
SetValue
(
a
:
GetBaseAttack
())
a
:
RegisterEffect
(
e4
,
true
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e5
:
SetCode
(
EFFECT_SET_BATTLE_DEFENSE
)
e5
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e5
:
SetValue
(
a
:
GetBaseDefense
())
a
:
RegisterEffect
(
e5
,
true
)
...
...
@@ -58,17 +54,13 @@ function c54773234.activate(e,tp,eg,ep,ev,re,r,rp)
if
d
and
d
:
IsRelateToBattle
()
then
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e6
:
SetCode
(
EFFECT_SET_BATTLE_ATTACK
)
e6
:
SetValue
(
d
:
GetBaseAttack
())
e6
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
d
:
RegisterEffect
(
e6
,
true
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e7
:
SetCode
(
EFFECT_SET_BATTLE_DEFENSE
)
e7
:
SetValue
(
d
:
GetBaseDefense
())
e7
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
d
:
RegisterEffect
(
e7
,
true
)
...
...
constant.lua
View file @
c25f01d1
...
...
@@ -547,6 +547,8 @@ EFFECT_EXTRA_LINK_MATERIAL =358 --手卡的连接素材
EFFECT_QP_ACT_IN_SET_TURN
=
359
--速攻魔法可以在盖放的回合发动
EFFECT_EXTRA_PENDULUM_SUMMON
=
360
--extra pendulum summon
EFFECT_MATERIAL_LIMIT
=
361
--
EFFECT_SET_BATTLE_ATTACK
=
362
--战斗的伤害计算用设置的攻击力进行
EFFECT_SET_BATTLE_DEFENSE
=
363
--战斗的伤害计算用设置的守备力进行
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP
=
1000
--N/A
...
...
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