Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
L2j Server Datapack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
L2j
L2j Server Datapack
Commits
eb5e17cf
Commit
eb5e17cf
authored
13 years ago
by
Zoey76
Browse files
Options
Downloads
Patches
Plain Diff
BETA: Fix for Sweeper, thanks VlLight.
parent
0a334644
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
L2J_DataPack_BETA/dist/game/data/scripts/handlers/skillhandlers/Sweep.java
+6
-5
6 additions, 5 deletions
.../dist/game/data/scripts/handlers/skillhandlers/Sweep.java
with
6 additions
and
5 deletions
L2J_DataPack_BETA/dist/game/data/scripts/handlers/skillhandlers/Sweep.java
+
6
−
5
View file @
eb5e17cf
...
...
@@ -38,7 +38,7 @@ public class Sweep implements ISkillHandler
@Override
public
void
useSkill
(
L2Character
activeChar
,
L2Skill
skill
,
L2Object
[]
targets
)
{
if
(!
(
activeChar
instanceof
L2PcInstance
))
if
(!
activeChar
.
isPlayer
(
))
{
return
;
}
...
...
@@ -48,22 +48,23 @@ public class Sweep implements ISkillHandler
L2Attackable
target
;
L2SkillSweeper
sweep
;
SystemMessage
sm
;
boolean
canSweep
=
true
;
boolean
canSweep
;
boolean
isSweeping
;
for
(
L2Object
tgt
:
targets
)
{
if
(!
(
tgt
instanceof
L2
Attackable
))
if
(!
tgt
.
is
Attackable
(
))
{
continue
;
}
target
=
(
L2Attackable
)
tgt
;
canSweep
&
=
target
.
checkSpoilOwner
(
player
,
true
);
canSweep
=
target
.
checkSpoilOwner
(
player
,
true
);
canSweep
&=
target
.
checkCorpseTime
(
player
,
maxSweepTime
,
true
);
canSweep
&=
player
.
getInventory
().
checkInventorySlotsAndWeight
(
target
.
getSpoilLootItems
(),
true
,
false
);
if
(
canSweep
)
{
boolean
isSweeping
=
false
;
isSweeping
=
false
;
synchronized
(
target
)
{
if
(
target
.
isSweepActive
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment