Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
ff6b5c9a
Commit
ff6b5c9a
authored
Jun 01, 2021
by
mallu11
Committed by
GitHub
Jun 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix BreakEffect (#1653)
parent
f49db65c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
10 deletions
+15
-10
c12255007.lua
c12255007.lua
+3
-2
c14315573.lua
c14315573.lua
+2
-1
c18964575.lua
c18964575.lua
+2
-1
c21123811.lua
c21123811.lua
+4
-3
c25857246.lua
c25857246.lua
+1
-0
c276357.lua
c276357.lua
+3
-3
No files found.
c12255007.lua
View file @
ff6b5c9a
...
...
@@ -32,7 +32,7 @@ function c12255007.actcon(e)
return
tc
and
tc
:
IsControler
(
tp
)
and
tc
:
IsSetCard
(
0x9f
,
0x99
)
end
function
c12255007
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
Get
TurnPlayer
()
~=
tp
return
Duel
.
Get
Attacker
():
IsControler
(
1
-
tp
)
end
function
c12255007
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsSetCard
,
1
,
nil
,
0x9f
)
end
...
...
@@ -40,7 +40,8 @@ function c12255007.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c12255007
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
NegateAttack
()
then
if
Duel
.
NegateAttack
()
then
Duel
.
BreakEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
end
c14315573.lua
View file @
ff6b5c9a
...
...
@@ -11,7 +11,7 @@ function c14315573.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c14315573
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
(
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
end
function
c14315573
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
tg
=
Duel
.
GetAttacker
()
...
...
@@ -22,6 +22,7 @@ end
function
c14315573
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetAttacker
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
NegateAttack
()
then
Duel
.
BreakEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
end
c18964575.lua
View file @
ff6b5c9a
...
...
@@ -13,7 +13,7 @@ function c18964575.initial_effect(c)
end
function
c18964575
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttacker
()
return
at
:
GetControler
()
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
return
at
:
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
function
c18964575
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
...
...
@@ -21,6 +21,7 @@ function c18964575.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c18964575
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateAttack
()
then
Duel
.
BreakEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
end
c21123811.lua
View file @
ff6b5c9a
...
...
@@ -61,7 +61,7 @@ end
function
c21123811
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAbleToRemoveAsCost
()
end
if
Duel
.
Remove
(
c
,
POS_FACEUP
,
REASON_COST
+
REASON_TEMPORARY
)
~=
0
then
if
Duel
.
Remove
(
c
,
0
,
REASON_COST
+
REASON_TEMPORARY
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
@@ -85,7 +85,7 @@ function c21123811.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c21123811
.
dscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
e
p
and
Duel
.
GetCurrentChain
()
==
0
return
ep
==
1
-
t
p
and
Duel
.
GetCurrentChain
()
==
0
end
function
c21123811
.
dstg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
@@ -97,10 +97,11 @@ function c21123811.dsop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
function
c21123811
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
Get
TurnPlayer
()
~=
tp
return
Duel
.
Get
Attacker
():
IsControler
(
1
-
tp
)
end
function
c21123811
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateAttack
()
then
Duel
.
BreakEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
end
...
...
c25857246.lua
View file @
ff6b5c9a
...
...
@@ -49,6 +49,7 @@ function c25857246.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c25857246
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateAttack
()
then
Duel
.
BreakEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
end
...
...
c276357.lua
View file @
ff6b5c9a
...
...
@@ -31,7 +31,7 @@ function c276357.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c276357
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
(
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
end
function
c276357
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_SPIRIT
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
@@ -43,7 +43,8 @@ function c276357.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
function
c276357
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
and
Duel
.
NegateAttack
()
then
if
Duel
.
NegateAttack
()
then
Duel
.
BreakEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE_STEP
,
1
)
end
end
...
...
@@ -62,7 +63,6 @@ function c276357.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
end
function
c276357
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
...
...
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