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
Reinen
ygopro-scripts
Commits
58ea6de6
Commit
58ea6de6
authored
Aug 04, 2020
by
mallu11
Committed by
GitHub
Aug 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 原始生命態ニビル (#1458)
should be able to calculate the atk/def of the trap monster and token.
parent
f0cdaf1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
c27204311.lua
c27204311.lua
+5
-2
No files found.
c27204311.lua
View file @
58ea6de6
...
...
@@ -48,6 +48,9 @@ function c27204311.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
2
,
0
,
0
)
end
function
c27204311
.
adfilter
(
c
,
f
)
return
math.max
(
f
(
c
),
0
)
end
function
c27204311
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c27204311
.
relfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
and
Duel
.
Release
(
g
,
REASON_EFFECT
)
~=
0
then
...
...
@@ -55,8 +58,8 @@ function c27204311.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
if
og
:
GetCount
()
==
0
then
return
end
local
atk
=
og
:
GetSum
(
Card
.
GetBase
Attack
)
local
def
=
og
:
GetSum
(
Card
.
GetBase
Defense
)
local
atk
=
og
:
GetSum
(
c27204311
.
adfilter
,
Card
.
GetText
Attack
)
local
def
=
og
:
GetSum
(
c27204311
.
adfilter
,
Card
.
GetText
Defense
)
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
,
tp
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
27204312
,
0
,
0x4011
,
atk
,
def
,
11
,
RACE_ROCK
,
ATTRIBUTE_LIGHT
)
then
Duel
.
BreakEffect
()
...
...
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