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
c8ba44f7
Commit
c8ba44f7
authored
Aug 13, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove usage of EFFECT_FLAG_AVAILABLE_BD
It's unnecessarty after Fluorohydride/ygopro-core@ec0a2f8
parent
f03aaed5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
40 deletions
+15
-40
c42776960.lua
c42776960.lua
+1
-1
c50916353.lua
c50916353.lua
+5
-21
c60953118.lua
c60953118.lua
+1
-1
c64631466.lua
c64631466.lua
+0
-1
c69155991.lua
c69155991.lua
+8
-16
No files found.
c42776960.lua
View file @
c8ba44f7
...
...
@@ -28,7 +28,7 @@ function c42776960.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_
AVAILABLE_BD
+
EFFECT_FLAG_
CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetCondition
(
c42776960
.
con
)
...
...
c50916353.lua
View file @
c8ba44f7
--地獄戦士
function
c50916353
.
initial_effect
(
c
)
--reg
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_AVAILABLE_BD
)
e1
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c50916353
.
regcon
)
e1
:
SetOperation
(
c50916353
.
regop
)
c
:
RegisterEffect
(
e1
)
end
function
c50916353
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
ep
==
tp
and
c
==
Duel
.
GetAttackTarget
()
end
function
c50916353
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
--damage
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
50916353
,
0
))
e1
:
SetCategory
(
CATEGORY_DAMAGE
)
...
...
@@ -24,17 +9,16 @@ function c50916353.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCondition
(
c50916353
.
damcon
)
e1
:
SetTarget
(
c50916353
.
damtg
)
e1
:
SetOperation
(
c50916353
.
damop
)
e1
:
SetLabel
(
ev
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e1
)
end
function
c50916353
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
return
e
v
==
1
and
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
end
function
c50916353
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
damage
=
Duel
.
GetBattleDamage
(
tp
)
if
chk
==
0
then
return
damage
>
0
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetParam
(
e
:
GetLabel
()
)
Duel
.
SetTargetParam
(
damage
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
e
:
GetLabel
())
end
function
c50916353
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c60953118.lua
View file @
c8ba44f7
...
...
@@ -62,7 +62,7 @@ function c60953118.arcanareg(c,coin)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_AVAILABLE_BD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
...
...
c64631466.lua
View file @
c8ba44f7
...
...
@@ -33,7 +33,6 @@ function c64631466.initial_effect(c)
--damage
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetProperty
(
EFFECT_FLAG_AVAILABLE_BD
)
e4
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCondition
(
c64631466
.
damcon
)
...
...
c69155991.lua
View file @
c8ba44f7
...
...
@@ -15,12 +15,11 @@ function c69155991.initial_effect(c)
e2
:
SetOperation
(
c69155991
.
desop1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SELF_DESTROY
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EVENT_BATTLED
)
e3
:
SetProperty
(
EFFECT_FLAG_AVAILABLE_BD
)
e3
:
SetOperation
(
c69155991
.
desop2
)
e3
:
SetLabelObject
(
e2
)
e3
:
SetCondition
(
c69155991
.
descon
)
c
:
RegisterEffect
(
e3
)
--to grave
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -35,7 +34,7 @@ function c69155991.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
c69155991
.
chop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
GetHandler
():
Is
Type
(
TYPE_MONSTER
)
then
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActive
Type
(
TYPE_MONSTER
)
then
e
:
GetHandler
():
RegisterFlagEffect
(
69155991
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_CHAIN
,
0
,
1
)
end
end
...
...
@@ -43,17 +42,10 @@ function c69155991.desop1(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
69155991
)
==
0
then
return
end
c
:
ResetFlagEffect
(
69155991
)
local
ph
=
Duel
.
GetCurrentPhase
()
if
(
ph
==
PHASE_DAMAGE
or
ph
==
PHASE_DAMAGE_CAL
)
and
not
Duel
.
IsDamageCalculated
()
then
c
:
RegisterFlagEffect
(
69155992
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
,
0
,
1
)
else
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
end
c
:
RegisterFlagEffect
(
69155992
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
function
c69155991
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetFlagEffect
(
69155992
)
~=
0
then
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
function
c69155991
.
descon
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
69155992
)
~=
0
end
function
c69155991
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
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