|
@@ -91,7 +91,7 @@ public final class RequestBuyItem extends L2GameClientPacket
|
|
|
|
|
|
L2Object target = player.getTarget();
|
|
L2Object target = player.getTarget();
|
|
if (!player.isGM() && (target == null // No target (ie GM Shop)
|
|
if (!player.isGM() && (target == null // No target (ie GM Shop)
|
|
- || !(target instanceof L2MerchantInstance || target instanceof L2FishermanInstance || target instanceof L2MercManagerInstance || target instanceof L2ClanHallManagerInstance)|| target instanceof L2CastleChamberlainInstance // Target not a merchant, fisherman or mercmanager
|
|
|
|
|
|
+ || !(target instanceof L2MerchantInstance || target instanceof L2FishermanInstance || target instanceof L2MercManagerInstance || target instanceof L2ClanHallManagerInstance || target instanceof L2CastleChamberlainInstance) // Target not a merchant, fisherman or mercmanager
|
|
|| !player.isInsideRadius(target, L2NpcInstance.INTERACTION_DISTANCE, false, false) // Distance is too far
|
|
|| !player.isInsideRadius(target, L2NpcInstance.INTERACTION_DISTANCE, false, false) // Distance is too far
|
|
)) return;
|
|
)) return;
|
|
|
|
|