Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
f1f8ef41
Commit
f1f8ef41
authored
Apr 08, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1251 from nekrozar/patch-3
fix Bujingi Boar
parents
ae86fb2b
3a09d538
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
script/c42551040.lua
script/c42551040.lua
+9
-12
No files found.
script/c42551040.lua
View file @
f1f8ef41
--武神器-イクタ
--武神器-イクタ
function
c42551040
.
initial_effect
(
c
)
function
c42551040
.
initial_effect
(
c
)
--
destroy
--
position
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
42551040
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
42551040
,
0
))
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetCategory
(
CATEGORY_POSITION
)
...
@@ -35,17 +35,14 @@ function c42551040.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -35,17 +35,14 @@ function c42551040.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c42551040
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42551040
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsPosition
(
POS_FACEUP_ATTACK
)
then
if
tc
:
GetDefence
()
>
0
and
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENCE
)
~=
0
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENCE
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
if
tc
:
GetDefence
()
>
0
then
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetValue
(
0
)
e1
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
0
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
end
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