Do not log nonexistent skill if id equals zero.

This commit is contained in:
MobiusDev
2018-03-26 20:49:51 +00:00
parent 2b22f885fb
commit c2fd26f718
7 changed files with 28 additions and 7 deletions

View File

@@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket
else else
{ {
activeChar.sendPacket(ActionFailed.STATIC_PACKET); activeChar.sendPacket(ActionFailed.STATIC_PACKET);
_log.warning("Skill Id " + _magicId + " not found in player!"); if (_magicId > 0)
{
_log.warning("Skill Id " + _magicId + " not found in player: " + activeChar);
}
return; return;
} }
} }

View File

@@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket
else else
{ {
activeChar.sendPacket(ActionFailed.STATIC_PACKET); activeChar.sendPacket(ActionFailed.STATIC_PACKET);
_log.warning("Skill Id " + _magicId + " not found in player!"); if (_magicId > 0)
{
_log.warning("Skill Id " + _magicId + " not found in player: " + activeChar);
}
return; return;
} }
} }

View File

@@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket
else else
{ {
activeChar.sendPacket(ActionFailed.STATIC_PACKET); activeChar.sendPacket(ActionFailed.STATIC_PACKET);
_log.warning("Skill Id " + _magicId + " not found in player!"); if (_magicId > 0)
{
_log.warning("Skill Id " + _magicId + " not found in player: " + activeChar);
}
return; return;
} }
} }

View File

@@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket
else else
{ {
activeChar.sendPacket(ActionFailed.STATIC_PACKET); activeChar.sendPacket(ActionFailed.STATIC_PACKET);
_log.warning("Skill Id " + _magicId + " not found in player!"); if (_magicId > 0)
{
_log.warning("Skill Id " + _magicId + " not found in player: " + activeChar);
}
return; return;
} }
} }

View File

@@ -74,7 +74,10 @@ public final class RequestMagicSkillUse extends L2GameClientPacket
if (skill == null) if (skill == null)
{ {
activeChar.sendPacket(ActionFailed.STATIC_PACKET); activeChar.sendPacket(ActionFailed.STATIC_PACKET);
if (_magicId > 0)
{
_log.warning("Skill Id " + _magicId + " not found in player: " + activeChar); _log.warning("Skill Id " + _magicId + " not found in player: " + activeChar);
}
return; return;
} }
} }

View File

@@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket
else else
{ {
activeChar.sendPacket(ActionFailed.STATIC_PACKET); activeChar.sendPacket(ActionFailed.STATIC_PACKET);
_log.warning("Skill Id " + _magicId + " not found in player!"); if (_magicId > 0)
{
_log.warning("Skill Id " + _magicId + " not found in player: " + activeChar);
}
return; return;
} }
} }

View File

@@ -62,7 +62,10 @@ public final class RequestMagicSkillUse implements IClientIncomingPacket
else else
{ {
activeChar.sendPacket(ActionFailed.STATIC_PACKET); activeChar.sendPacket(ActionFailed.STATIC_PACKET);
_log.warning("Skill Id " + _magicId + " not found in player!"); if (_magicId > 0)
{
_log.warning("Skill Id " + _magicId + " not found in player: " + activeChar);
}
return; return;
} }
} }