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
869c1a5e
Commit
869c1a5e
authored
9 years ago
by
Zoey76
Browse files
Options
Downloads
Patches
Plain Diff
Updating Area Friendly restrictions to prevent siege enemies from being
targeted Fix #293
parent
95ad62d7
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
dist/game/data/scripts/handlers/targethandlers/AreaFriendly.java
+2
-1
2 additions, 1 deletion
...me/data/scripts/handlers/targethandlers/AreaFriendly.java
with
2 additions
and
1 deletion
dist/game/data/scripts/handlers/targethandlers/AreaFriendly.java
+
2
−
1
View file @
869c1a5e
...
...
@@ -36,6 +36,7 @@ import com.l2jserver.gameserver.model.zone.ZoneId;
import
com.l2jserver.gameserver.network.SystemMessageId
;
/**
* Area Friendly target handler implementation.
* @author Adry_85
*/
public
class
AreaFriendly
implements
ITargetTypeHandler
...
...
@@ -107,7 +108,7 @@ public class AreaFriendly implements ITargetTypeHandler
return
false
;
}
if
((
target
==
null
)
||
target
.
isAlikeDead
()
||
target
.
isDoor
()
||
(
target
instanceof
L2SiegeFlagInstance
)
||
target
.
isMonster
())
if
((
target
==
null
)
||
target
.
isAlikeDead
()
||
target
.
isDoor
()
||
!
activeChar
.
isOnSameSiegeSideWith
(
target
)
||
(
target
instanceof
L2SiegeFlagInstance
)
||
target
.
isMonster
())
{
return
false
;
}
...
...
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