Fixed friend related issues.

Contributed by Strelook66.
This commit is contained in:
MobiusDevelopment
2022-01-14 22:07:14 +00:00
parent 1df749fff3
commit d4682081cd
4 changed files with 6 additions and 30 deletions

View File

@@ -11828,7 +11828,7 @@ public class Player extends Playable
revalidateZone(true);
notifyFriends(false);
notifyFriends(true);
// Fix against exploit on anti-target on login
decayMe();
@@ -13086,7 +13086,7 @@ public class Player extends Playable
_chanceSkills = null;
}
notifyFriends(true);
notifyFriends(false);
// Remove WorldObject object from _allObjects of World
World.getInstance().removeObject(this);

View File

@@ -19,25 +19,13 @@ package org.l2jmobius.gameserver.network.serverpackets;
import org.l2jmobius.commons.network.PacketWriter;
import org.l2jmobius.gameserver.network.OutgoingPackets;
/**
* sample
* <p>
* 7d c1 b2 e0 4a 00 00 00 00
* <p>
* format cdd
* @version $Revision: 1.1.2.1.2.3 $ $Date: 2005/03/27 15:29:57 $
*/
public class AskJoinFriend implements IClientOutgoingPacket
{
private final String _requestorName;
/**
* @param requestorName
*/
public AskJoinFriend(String requestorName)
{
_requestorName = requestorName;
// _itemDistribution = itemDistribution;
}
@Override
@@ -46,6 +34,6 @@ public class AskJoinFriend implements IClientOutgoingPacket
OutgoingPackets.ASK_JOIN_FRIEND.writeId(packet);
packet.writeS(_requestorName);
packet.writeD(0);
return false;
return true;
}
}