GM characters should buy from anywhere.

This commit is contained in:
MobiusDevelopment
2019-12-06 16:57:45 +00:00
parent 1e37904aae
commit 41876df8c3

View File

@@ -53,6 +53,8 @@ public class RequestBuyItem extends ClientBasePacket
final PlayerInstance player = client.getActiveChar(); final PlayerInstance player = client.getActiveChar();
// Prevent buying items far from merchant. // Prevent buying items far from merchant.
if (!player.isGM())
{
if (!(player.getTarget() instanceof MerchantInstance)) if (!(player.getTarget() instanceof MerchantInstance))
{ {
return; return;
@@ -70,6 +72,7 @@ public class RequestBuyItem extends ClientBasePacket
{ {
return; return;
} }
}
double neededMoney = 0; double neededMoney = 0;
final long currentMoney = player.getAdena(); final long currentMoney = player.getAdena();