Check if ability points are less than zero.
This commit is contained in:
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
@@ -84,7 +84,7 @@ public class RequestAcquireAbilityList implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((player.getAbilityPoints() == 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
if ((player.getAbilityPoints() <= 0) || (player.getAbilityPoints() == player.getAbilityPointsUsed()))
|
||||||
{
|
{
|
||||||
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
PacketLogger.warning(player + " is trying to learn ability without ability points!");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user