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
6e13e4be
Commit
6e13e4be
authored
Dec 28, 2019
by
DailyShana
Committed by
mercury233
Dec 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update "battle damage become 0" (#1292)
use EFFECT_AVOID_BATTLE_DAMAGE
parent
c7ebae95
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
112 additions
and
181 deletions
+112
-181
c12644061.lua
c12644061.lua
+6
-9
c14146794.lua
c14146794.lua
+4
-6
c16674846.lua
c16674846.lua
+4
-6
c23122036.lua
c23122036.lua
+5
-10
c24268052.lua
c24268052.lua
+4
-6
c24882256.lua
c24882256.lua
+4
-6
c37780349.lua
c37780349.lua
+4
-6
c40640057.lua
c40640057.lua
+4
-6
c47432275.lua
c47432275.lua
+4
-6
c54569495.lua
c54569495.lua
+6
-7
c5524387.lua
c5524387.lua
+4
-9
c57496978.lua
c57496978.lua
+4
-7
c58012707.lua
c58012707.lua
+4
-7
c60953118.lua
c60953118.lua
+4
-6
c63009228.lua
c63009228.lua
+4
-6
c6622715.lua
c6622715.lua
+4
-6
c66262416.lua
c66262416.lua
+4
-6
c67712104.lua
c67712104.lua
+7
-9
c71985676.lua
c71985676.lua
+4
-7
c76403456.lua
c76403456.lua
+4
-6
c88610708.lua
c88610708.lua
+5
-10
c9106362.lua
c9106362.lua
+7
-18
c94207108.lua
c94207108.lua
+7
-9
c99733359.lua
c99733359.lua
+5
-7
No files found.
c12644061.lua
View file @
6e13e4be
...
@@ -90,13 +90,10 @@ function c12644061.damop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -90,13 +90,10 @@ function c12644061.damop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetOperation
(
c12644061
.
dop
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c12644061
.
dop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
end
c14146794.lua
View file @
6e13e4be
...
@@ -35,15 +35,13 @@ function c14146794.damcost1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -35,15 +35,13 @@ function c14146794.damcost1(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c14146794
.
damop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14146794
.
damop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c14146794
.
damval1
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c14146794
.
damval1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
function
c14146794
.
damcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14146794
.
damcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
((
re
:
GetHandler
():
IsSetCard
(
0x135
)
and
re
:
IsActiveType
(
TYPE_MONSTER
))
or
(
re
:
GetHandler
():
IsSetCard
(
0x136
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)))
return
((
re
:
GetHandler
():
IsSetCard
(
0x135
)
and
re
:
IsActiveType
(
TYPE_MONSTER
))
or
(
re
:
GetHandler
():
IsSetCard
(
0x136
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)))
and
aux
.
damcon1
(
e
,
1
-
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
aux
.
damcon1
(
e
,
1
-
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c16674846.lua
View file @
6e13e4be
...
@@ -17,9 +17,10 @@ function c16674846.filter(c)
...
@@ -17,9 +17,10 @@ function c16674846.filter(c)
end
end
function
c16674846
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c16674846
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c16674846
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c16674846
.
filter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c16674846
.
filter
),
tp
,
LOCATION_GRAVE
,
0
,
nil
)
...
@@ -30,6 +31,3 @@ function c16674846.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,6 +31,3 @@ function c16674846.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
end
end
end
end
function
c16674846
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
c23122036.lua
View file @
6e13e4be
...
@@ -63,11 +63,10 @@ function c23122036.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -63,11 +63,10 @@ function c23122036.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e2
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c23122036
.
damcon
)
e2
:
SetCondition
(
c23122036
.
damcon
)
e2
:
Set
Operation
(
c23122036
.
damop
)
e2
:
Set
Value
(
1
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Equip limit
--Equip limit
...
@@ -85,10 +84,6 @@ end
...
@@ -85,10 +84,6 @@ end
function
c23122036
.
valcon
(
e
,
re
,
r
,
rp
)
function
c23122036
.
valcon
(
e
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
and
e
:
GetHandler
():
GetEquipTarget
():
IsPosition
(
POS_FACEUP_ATTACK
)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
and
e
:
GetHandler
():
GetEquipTarget
():
IsPosition
(
POS_FACEUP_ATTACK
)
end
end
function
c23122036
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23122036
.
damcon
(
e
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
return
e
:
GetHandler
():
GetEquipTarget
():
GetControler
()
==
e
:
GetHandlerPlayer
()
return
ec
and
ep
==
tp
and
(
Duel
.
GetAttacker
()
==
ec
or
Duel
.
GetAttackTarget
()
==
ec
)
end
function
c23122036
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
end
c24268052.lua
View file @
6e13e4be
...
@@ -18,13 +18,11 @@ function c24268052.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,13 +18,11 @@ function c24268052.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c24268052
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24268052
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c24268052
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
end
end
function
c24268052
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
c24882256.lua
View file @
6e13e4be
...
@@ -57,15 +57,13 @@ function c24882256.damop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,15 +57,13 @@ function c24882256.damop(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
Damage
(
1
-
tp
,
c
:
GetAttack
(),
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
c
:
GetAttack
(),
REASON_EFFECT
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c24882256
.
damop2
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c24882256
.
damop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
1
-
tp
,
0
)
end
function
c24882256
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24882256
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
return
e
:
GetHandler
():
IsReason
(
REASON_EFFECT
)
end
end
...
...
c37780349.lua
View file @
6e13e4be
...
@@ -37,18 +37,16 @@ function c37780349.dmtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -37,18 +37,16 @@ function c37780349.dmtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c37780349
.
dmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c37780349
.
dmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c37780349
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
,
true
)
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
,
true
)
Duel
.
RDComplete
()
Duel
.
RDComplete
()
end
end
function
c37780349
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
function
c37780349
.
filter
(
c
)
function
c37780349
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc008
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc008
)
end
end
...
...
c40640057.lua
View file @
6e13e4be
...
@@ -20,12 +20,10 @@ function c40640057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -20,12 +20,10 @@ function c40640057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c40640057
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40640057
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c40640057
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c40640057
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
c47432275.lua
View file @
6e13e4be
...
@@ -24,15 +24,13 @@ end
...
@@ -24,15 +24,13 @@ end
function
c47432275
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47432275
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c47432275
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
local
p
,
d
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
,
CHAININFO_TARGET_PARAM
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
c
,
nil
,
REASON_EFFECT
)
end
end
function
c47432275
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
c54569495.lua
View file @
6e13e4be
...
@@ -70,18 +70,17 @@ function c54569495.damtg1(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -70,18 +70,17 @@ function c54569495.damtg1(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c54569495
.
damop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54569495
.
damop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetCondition
(
c54569495
.
damcon3
)
e1
:
SetCondition
(
c54569495
.
damcon3
)
e1
:
SetOperation
(
c54569495
.
damop3
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c54569495
.
damcon3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54569495
.
damcon3
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
g
=
Duel
.
GetMatchingGroup
(
c54569495
.
damfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c54569495
.
damfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
local
ct
=
g
:
GetSum
(
Card
.
GetLink
)
*
1000
local
ct
=
g
:
GetSum
(
Card
.
GetLink
)
*
1000
return
Duel
.
GetBattleDamage
(
tp
)
<=
ct
return
Duel
.
GetBattleDamage
(
tp
)
<=
ct
end
end
function
c54569495
.
damop3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
c5524387.lua
View file @
6e13e4be
...
@@ -70,15 +70,10 @@ function c5524387.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,15 +70,10 @@ function c5524387.operation(e,tp,eg,ep,ev,re,r,rp)
d
:
RegisterEffect
(
e2
)
d
:
RegisterEffect
(
e2
)
end
end
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
E
VENT_PRE
_BATTLE_DAMAGE
)
e3
:
SetCode
(
E
FFECT_AVOID
_BATTLE_DAMAGE
)
e3
:
Set
Operation
(
c5524387
.
damop
)
e3
:
Set
Property
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
Set
LabelObject
(
a
)
e3
:
Set
TargetRange
(
1
,
0
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
function
c5524387
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabelObject
()
==
Duel
.
GetAttacker
()
then
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
end
c57496978.lua
View file @
6e13e4be
...
@@ -40,9 +40,10 @@ function c57496978.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,9 +40,10 @@ function c57496978.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
g
:
KeepAlive
()
g
:
KeepAlive
()
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e2
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e2
:
SetOperation
(
c57496978
.
damop
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -54,10 +55,6 @@ function c57496978.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,10 +55,6 @@ function c57496978.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
end
end
function
c57496978
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
Duel
.
ChangeBattleDamage
(
1
-
tp
,
0
)
end
function
c57496978
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c57496978
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
():
Filter
(
Card
.
IsStatus
,
nil
,
STATUS_BATTLE_DESTROYED
)
local
g
=
e
:
GetLabelObject
():
Filter
(
Card
.
IsStatus
,
nil
,
STATUS_BATTLE_DESTROYED
)
local
tg
=
Group
.
CreateGroup
()
local
tg
=
Group
.
CreateGroup
()
...
...
c58012707.lua
View file @
6e13e4be
...
@@ -49,9 +49,10 @@ function c58012707.dmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,9 +49,10 @@ function c58012707.dmop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c58012707
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
@@ -68,10 +69,6 @@ function c58012707.dmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -68,10 +69,6 @@ function c58012707.dmop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c58012707
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
Duel
.
ChangeBattleDamage
(
1
-
tp
,
0
)
end
function
c58012707
.
cfilter
(
c
,
tp
)
function
c58012707
.
cfilter
(
c
,
tp
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
return
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
end
end
...
...
c60953118.lua
View file @
6e13e4be
...
@@ -36,15 +36,13 @@ function c60953118.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,15 +36,13 @@ function c60953118.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c60953118
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c60953118
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c60953118
.
dop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c60953118
.
dop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
function
c60953118
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c60953118
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
...
...
c63009228.lua
View file @
6e13e4be
...
@@ -36,15 +36,13 @@ function c63009228.dmcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -36,15 +36,13 @@ function c63009228.dmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c63009228
.
dmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63009228
.
dmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c63009228
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c63009228
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
function
c63009228
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63009228
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
63009228
)
>
0
return
e
:
GetHandler
():
GetFlagEffect
(
63009228
)
>
0
end
end
...
...
c6622715.lua
View file @
6e13e4be
...
@@ -38,9 +38,10 @@ function c6622715.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -38,9 +38,10 @@ function c6622715.operation(e,tp,eg,ep,ev,re,r,rp)
a
:
RegisterEffect
(
e1
)
a
:
RegisterEffect
(
e1
)
end
end
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e2
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e2
:
SetOperation
(
c6622715
.
damop
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -53,9 +54,6 @@ function c6622715.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,9 +54,6 @@ function c6622715.operation(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c6622715
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
function
c6622715
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6622715
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
b
=
e
:
GetLabelObject
()
local
b
=
e
:
GetLabelObject
()
...
...
c66262416.lua
View file @
6e13e4be
...
@@ -44,13 +44,11 @@ function c66262416.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,13 +44,11 @@ function c66262416.spop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
LOCATION_REMOVED
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
,
true
)
c
:
RegisterEffect
(
e2
,
true
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e3
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e3
:
SetOperation
(
c66262416
.
damop
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
end
end
end
function
c66262416
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
c67712104.lua
View file @
6e13e4be
...
@@ -79,14 +79,12 @@ function c67712104.indop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -79,14 +79,12 @@ function c67712104.indop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
at
:
RegisterEffect
(
e1
)
at
:
RegisterEffect
(
e1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e2
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e3
:
SetOperation
(
c67712104
.
damop
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e2
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e3
,
tp
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
end
function
c67712104
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
c71985676.lua
View file @
6e13e4be
...
@@ -35,16 +35,13 @@ function c71985676.dmcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -35,16 +35,13 @@ function c71985676.dmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c71985676
.
dmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71985676
.
dmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c71985676
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c71985676
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
Duel
.
ChangeBattleDamage
(
1
-
tp
,
0
)
end
function
c71985676
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71985676
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
end
...
...
c76403456.lua
View file @
6e13e4be
...
@@ -25,12 +25,10 @@ function c76403456.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,12 +25,10 @@ function c76403456.activate(e,tp,eg,ep,ev,re,r,rp)
local
og
=
Duel
.
GetOperatedGroup
()
local
og
=
Duel
.
GetOperatedGroup
()
if
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
<
val
then
return
end
if
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
<
val
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c76403456
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c76403456
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
c88610708.lua
View file @
6e13e4be
...
@@ -24,11 +24,10 @@ function c88610708.initial_effect(c)
...
@@ -24,11 +24,10 @@ function c88610708.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--no damage
--no damage
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetType
(
EFFECT_TYPE_EQUIP
)
e4
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e4
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCondition
(
c88610708
.
damcon
)
e4
:
SetCondition
(
c88610708
.
damcon
)
e4
:
Set
Operation
(
c88610708
.
damop
)
e4
:
Set
Value
(
1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c88610708
.
eqlimit
(
e
,
c
)
function
c88610708
.
eqlimit
(
e
,
c
)
...
@@ -51,10 +50,6 @@ function c88610708.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,10 +50,6 @@ function c88610708.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
c
,
tc
)
Duel
.
Equip
(
tp
,
c
,
tc
)
end
end
end
end
function
c88610708
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88610708
.
damcon
(
e
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
return
e
:
GetHandler
():
GetEquipTarget
():
GetControler
()
==
e
:
GetHandlerPlayer
()
return
ec
and
ep
==
tp
and
(
Duel
.
GetAttacker
()
==
ec
or
Duel
.
GetAttackTarget
()
==
ec
)
end
function
c88610708
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
end
c9106362.lua
View file @
6e13e4be
...
@@ -9,40 +9,29 @@ function c9106362.initial_effect(c)
...
@@ -9,40 +9,29 @@ function c9106362.initial_effect(c)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c9106362
.
dmcon1
)
e1
:
SetCondition
(
c9106362
.
dmcon1
)
e1
:
SetOperation
(
c9106362
.
dmop
1
)
e1
:
SetOperation
(
c9106362
.
dmop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--Negate damage (monster)
--Negate damage (monster)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c9106362
.
dmcon2
)
e2
:
SetCondition
(
c9106362
.
dmcon2
)
e2
:
SetOperation
(
c9106362
.
dmop
2
)
e2
:
SetOperation
(
c9106362
.
dmop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c9106362
.
dmcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9106362
.
dmcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
end
function
c9106362
.
dmop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c9106362
.
damop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c9106362
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
function
c9106362
.
dmcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9106362
.
dmcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
return
d
and
a
:
GetControler
()
~=
d
:
GetControler
()
return
d
and
a
:
GetControler
()
~=
d
:
GetControler
()
end
end
function
c9106362
.
dmop
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9106362
.
dmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e1
:
SetOperation
(
c9106362
.
damop
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
c94207108.lua
View file @
6e13e4be
...
@@ -70,17 +70,15 @@ function c94207108.spop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -70,17 +70,15 @@ function c94207108.spop1(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e2
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e3
:
SetOperation
(
c94207108
.
damop
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e2
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e3
,
tp
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
end
function
c94207108
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
function
c94207108
.
eqcon
(
mc
)
function
c94207108
.
eqcon
(
mc
)
return
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c99733359.lua
View file @
6e13e4be
...
@@ -36,14 +36,12 @@ function c99733359.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,14 +36,12 @@ function c99733359.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_REDIRECT
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
,
true
)
c
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e2
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
e2
:
SetOperation
(
c99733359
.
damop
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
end
function
c99733359
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
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