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
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
Vee4
ygopro-scripts-888
Commits
dc14ca3a
Commit
dc14ca3a
authored
Mar 30, 2022
by
Chrono-Genex
Committed by
GitHub
Mar 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Rivalry of Warlords and so on (#1847)
parent
047f1b6c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
c23931679.lua
c23931679.lua
+1
-1
c24207889.lua
c24207889.lua
+2
-2
c53334471.lua
c53334471.lua
+5
-2
c90846359.lua
c90846359.lua
+5
-2
No files found.
c23931679.lua
View file @
dc14ca3a
...
@@ -23,7 +23,7 @@ function c23931679.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c23931679.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_
CANNOT_SPECIAL_SUMM
ON
)
e3
:
SetCode
(
EFFECT_
LIMIT_SPECIAL_SUMMON_POSITI
ON
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCondition
(
c23931679
.
condition
)
e3
:
SetCondition
(
c23931679
.
condition
)
e3
:
SetTargetRange
(
1
,
1
)
e3
:
SetTargetRange
(
1
,
1
)
...
...
c24207889.lua
View file @
dc14ca3a
...
@@ -18,7 +18,7 @@ function c24207889.initial_effect(c)
...
@@ -18,7 +18,7 @@ function c24207889.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EFFECT_
CANNOT_SPECIAL_SUMM
ON
)
e4
:
SetCode
(
EFFECT_
LIMIT_SPECIAL_SUMMON_POSITI
ON
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetTarget
(
c24207889
.
sumlimit
)
e4
:
SetTarget
(
c24207889
.
sumlimit
)
...
@@ -44,7 +44,7 @@ function c24207889.initial_effect(c)
...
@@ -44,7 +44,7 @@ function c24207889.initial_effect(c)
end
end
end
end
function
c24207889
.
rmfilter
(
c
,
rc
)
function
c24207889
.
rmfilter
(
c
,
rc
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
rc
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
rc
)
and
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
end
end
function
c24207889
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c24207889
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
sumtype
==
SUMMON_TYPE_DUAL
then
return
false
end
if
sumtype
==
SUMMON_TYPE_DUAL
then
return
false
end
...
...
c53334471.lua
View file @
dc14ca3a
...
@@ -19,7 +19,7 @@ function c53334471.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c53334471.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EFFECT_
CANNOT_SPECIAL_SUMM
ON
)
e4
:
SetCode
(
EFFECT_
LIMIT_SPECIAL_SUMMON_POSITI
ON
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetTarget
(
c53334471
.
sumlimit
)
e4
:
SetTarget
(
c53334471
.
sumlimit
)
...
@@ -48,9 +48,12 @@ function c53334471.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,9 +48,12 @@ function c53334471.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
c53334471
[
0
]
=
0
c53334471
[
0
]
=
0
c53334471
[
1
]
=
0
c53334471
[
1
]
=
0
end
end
function
c53334471
.
limfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
end
function
c53334471
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c53334471
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
sumpos
and
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
then
return
false
end
if
sumpos
and
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
then
return
false
end
local
at
=
c53334471
.
getattribute
(
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
targetp
or
sump
,
LOCATION_MZONE
,
0
,
nil
))
local
at
=
c53334471
.
getattribute
(
Duel
.
GetMatchingGroup
(
c53334471
.
limfilter
,
targetp
or
sump
,
LOCATION_MZONE
,
0
,
nil
))
if
at
==
0
then
return
false
end
if
at
==
0
then
return
false
end
return
c
:
GetAttribute
()
~=
at
return
c
:
GetAttribute
()
~=
at
end
end
...
...
c90846359.lua
View file @
dc14ca3a
...
@@ -19,7 +19,7 @@ function c90846359.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c90846359.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCode
(
EFFECT_
CANNOT_SPECIAL_SUMM
ON
)
e4
:
SetCode
(
EFFECT_
LIMIT_SPECIAL_SUMMON_POSITI
ON
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetTargetRange
(
1
,
1
)
e4
:
SetTarget
(
c90846359
.
sumlimit
)
e4
:
SetTarget
(
c90846359
.
sumlimit
)
...
@@ -48,9 +48,12 @@ function c90846359.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,9 +48,12 @@ function c90846359.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
c90846359
[
0
]
=
0
c90846359
[
0
]
=
0
c90846359
[
1
]
=
0
c90846359
[
1
]
=
0
end
end
function
c90846359
.
limfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
end
function
c90846359
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c90846359
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
if
sumpos
and
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
then
return
false
end
if
sumpos
and
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
then
return
false
end
local
rc
=
c90846359
.
getrace
(
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
targetp
or
sump
,
LOCATION_MZONE
,
0
,
nil
))
local
rc
=
c90846359
.
getrace
(
Duel
.
GetMatchingGroup
(
c90846359
.
limfilter
,
targetp
or
sump
,
LOCATION_MZONE
,
0
,
nil
))
if
rc
==
0
then
return
false
end
if
rc
==
0
then
return
false
end
return
c
:
GetRace
()
~=
rc
return
c
:
GetRace
()
~=
rc
end
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