forked from AscensionGameDev/Intersect-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
0009-attack-fix.patch
26 lines (23 loc) · 958 Bytes
/
0009-attack-fix.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 9e02efd038886894a760b987a16c52df7d04751b Mon Sep 17 00:00:00 2001
From: Bandana <aurelende@protonmail.com>
Date: Sun, 5 Apr 2020 17:58:28 -0400
Subject: [PATCH 09/15] attack fix
Signed-off-by: Bandana <aurelende@protonmail.com>
---
Intersect.Client/Entities/Player.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Intersect.Client/Entities/Player.cs b/Intersect.Client/Entities/Player.cs
index 76ef441e..8bad222d 100644
--- a/Intersect.Client/Entities/Player.cs
+++ b/Intersect.Client/Entities/Player.cs
@@ -1034,7 +1034,7 @@ public bool TryAttack()
if (en.Value != Globals.Me)
{
if (en.Value.CurrentMap == map &&
- en.Value.X == x ||
+ en.Value.X == x &&
en.Value.Y == y &&
en.Value.CanBeAttacked())
{
--
2.25.0.windows.1