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
06941fc2
Commit
06941fc2
authored
Jun 03, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Duel.CalculateDamage()
parent
be7a0b88
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
c62878208.lua
c62878208.lua
+1
-1
c88482761.lua
c88482761.lua
+1
-1
constant.lua
constant.lua
+2
-2
No files found.
c62878208.lua
View file @
06941fc2
...
@@ -48,7 +48,7 @@ function c62878208.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c62878208.eqop(e,tp,eg,ep,ev,re,r,rp)
d
=
eqc
d
=
eqc
end
end
if
a
:
IsAttackable
()
and
not
a
:
IsImmuneToEffect
(
e
)
and
not
d
:
IsImmuneToEffect
(
e
)
then
if
a
:
IsAttackable
()
and
not
a
:
IsImmuneToEffect
(
e
)
and
not
d
:
IsImmuneToEffect
(
e
)
then
Duel
.
CalculateDamage
(
a
,
d
)
Duel
.
CalculateDamage
(
a
,
d
,
true
)
end
end
end
end
end
end
c88482761.lua
View file @
06941fc2
...
@@ -88,7 +88,7 @@ function c88482761.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -88,7 +88,7 @@ function c88482761.atkop(e,tp,eg,ep,ev,re,r,rp)
if
c1
~=
e
:
GetLabelObject
()
then
c1
,
c2
=
c2
,
c1
end
if
c1
~=
e
:
GetLabelObject
()
then
c1
,
c2
=
c2
,
c1
end
if
c1
:
IsControler
(
1
-
tp
)
and
c1
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
not
c1
:
IsImmuneToEffect
(
e
)
if
c1
:
IsControler
(
1
-
tp
)
and
c1
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
not
c1
:
IsImmuneToEffect
(
e
)
and
c2
:
IsControler
(
tp
)
then
and
c2
:
IsControler
(
tp
)
then
Duel
.
CalculateDamage
(
c1
,
c2
)
Duel
.
CalculateDamage
(
c1
,
c2
,
true
)
end
end
end
end
end
end
constant.lua
View file @
06941fc2
...
@@ -698,13 +698,13 @@ DUEL_PSEUDO_SHUFFLE =0x10 --不洗牌
...
@@ -698,13 +698,13 @@ DUEL_PSEUDO_SHUFFLE =0x10 --不洗牌
DUEL_TAG_MODE
=
0x20
--双打PP
DUEL_TAG_MODE
=
0x20
--双打PP
DUEL_SIMPLE_AI
=
0x40
--AI(用于残局)
DUEL_SIMPLE_AI
=
0x40
--AI(用于残局)
--Activity counter
--Activity counter
--global: 1-6 (binary: 6)
--global: 1-6 (binary:
5,
6)
--custom: 1-5,7 (binary: 1-5)
--custom: 1-5,7 (binary: 1-5)
ACTIVITY_SUMMON
=
1
--
ACTIVITY_SUMMON
=
1
--
ACTIVITY_NORMALSUMMON
=
2
--
ACTIVITY_NORMALSUMMON
=
2
--
ACTIVITY_SPSUMMON
=
3
--
ACTIVITY_SPSUMMON
=
3
--
ACTIVITY_FLIPSUMMON
=
4
--
ACTIVITY_FLIPSUMMON
=
4
--
ACTIVITY_ATTACK
=
5
--
global: count of attack announce, custom: count of attack (including changing target, damage calculation)
ACTIVITY_ATTACK
=
5
--
ACTIVITY_BATTLE_PHASE
=
6
-- not available in custom counter
ACTIVITY_BATTLE_PHASE
=
6
-- not available in custom counter
ACTIVITY_CHAIN
=
7
-- only available in custom counter
ACTIVITY_CHAIN
=
7
-- only available in custom counter
--announce type(宣言类型,CATEGORY_ANNOUNCE的OperationInfo的target_param)
--announce type(宣言类型,CATEGORY_ANNOUNCE的OperationInfo的target_param)
...
...
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