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
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
Commits
cf202a65
Commit
cf202a65
authored
Nov 25, 2014
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1010 from salix5/patch-hat
fix: Magical Hat
parents
32841b22
40f9ff44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
script/c77462146.lua
script/c77462146.lua
+1
-0
script/c81210420.lua
script/c81210420.lua
+7
-3
No files found.
script/c77462146.lua
View file @
cf202a65
...
...
@@ -59,6 +59,7 @@ function c77462146.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
77462146
,
0
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
SetStatus
(
STATUS_NO_LEVEL
,
false
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
...
...
script/c81210420.lua
View file @
cf202a65
...
...
@@ -44,6 +44,7 @@ function c81210420.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
local
tg
=
sg
:
GetFirst
()
local
fid
=
e
:
GetHandler
():
GetFieldID
()
while
tg
do
local
e1
=
Effect
.
CreateEffect
(
tg
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -68,6 +69,7 @@ function c81210420.activate(e,tp,eg,ep,ev,re,r,rp)
e5
:
SetCode
(
EFFECT_SET_BASE_DEFENCE
)
e5
:
SetValue
(
0
)
tg
:
RegisterEffect
(
e5
,
true
)
tg
:
RegisterFlagEffect
(
81210420
,
RESET_EVENT
+
0x47c0000
+
RESET_PHASE
+
PHASE_BATTLE
,
0
,
1
,
fid
)
tg
:
SetStatus
(
STATUS_NO_LEVEL
,
true
)
tg
=
sg
:
GetNext
()
end
...
...
@@ -82,16 +84,18 @@ function c81210420.activate(e,tp,eg,ep,ev,re,r,rp)
de
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE
)
de
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
de
:
SetCountLimit
(
1
)
de
:
SetLabel
(
fid
)
de
:
SetLabelObject
(
sg
)
de
:
SetOperation
(
c81210420
.
desop
)
Duel
.
RegisterEffect
(
de
,
tp
)
end
function
c81210420
.
desfilter
(
c
)
return
c
:
GetFlagEffect
(
81210420
)
>
0
function
c81210420
.
desfilter
(
c
,
fid
)
return
c
:
GetFlagEffect
Label
(
81210420
)
==
fid
end
function
c81210420
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
e
:
GetLabelObject
()
local
tg
=
g
:
Filter
(
c81210420
.
desfilter
,
nil
)
local
fid
=
e
:
GetLabel
()
local
tg
=
g
:
Filter
(
c81210420
.
desfilter
,
nil
,
fid
)
g
:
DeleteGroup
()
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
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