RequestFriendInvite should check if player is offline.
This commit is contained in:
@@ -45,7 +45,7 @@ public class RequestFriendInvite extends GameClientPacket
|
|||||||
final PlayerInstance friend = World.getInstance().getPlayer(_name);
|
final PlayerInstance friend = World.getInstance().getPlayer(_name);
|
||||||
|
|
||||||
// can't use friend invite for locating invisible characters
|
// can't use friend invite for locating invisible characters
|
||||||
if ((friend == null) || friend.isOnline() || friend.getAppearance().isInvisible())
|
if ((friend == null) || !friend.isOnline() || friend.getAppearance().isInvisible())
|
||||||
{
|
{
|
||||||
// Target is not found in the game.
|
// Target is not found in the game.
|
||||||
player.sendPacket(SystemMessageId.THE_USER_WHO_REQUESTED_TO_BECOME_FRIENDS_IS_NOT_FOUND_IN_THE_GAME);
|
player.sendPacket(SystemMessageId.THE_USER_WHO_REQUESTED_TO_BECOME_FRIENDS_IS_NOT_FOUND_IN_THE_GAME);
|
||||||
|
|||||||
Reference in New Issue
Block a user