Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -42,10 +42,6 @@ public class ConditionPlayerTvTEvent extends Condition
public boolean testImpl(L2Character effector, L2Character effected, Skill skill, L2Item item)
{
final L2PcInstance player = effector.getActingPlayer();
if ((player == null) || !TvTEvent.isStarted())
{
return !_val;
}
return (TvTEvent.isPlayerParticipant(player.getObjectId()) == _val);
return (player == null) || !TvTEvent.isStarted() ? !_val : TvTEvent.isPlayerParticipant(player.getObjectId()) == _val;
}
}