Fixed OpCheckClassList condition.

This commit is contained in:
MobiusDev 2018-09-03 20:49:44 +00:00
parent 8c8f0f6086
commit a9045910af
7 changed files with 14 additions and 14 deletions

View File

@ -53,9 +53,9 @@ public class OpCheckClassListSkillCondition implements ISkillCondition
}
case TARGET:
{
if ((target != null) && !target.isPlayer())
if ((target != null) && target.isPlayer())
{
return _isWithin == _classIds.stream().anyMatch(classId -> classId == target.getActingPlayer().getClassId());
return _isWithin == _classIds.stream().anyMatch(classId -> classId.getId() == target.getActingPlayer().getClassId().getId());
}
break;
}

View File

@ -53,9 +53,9 @@ public class OpCheckClassListSkillCondition implements ISkillCondition
}
case TARGET:
{
if ((target != null) && !target.isPlayer())
if ((target != null) && target.isPlayer())
{
return _isWithin == _classIds.stream().anyMatch(classId -> classId == target.getActingPlayer().getClassId());
return _isWithin == _classIds.stream().anyMatch(classId -> classId.getId() == target.getActingPlayer().getClassId().getId());
}
break;
}

View File

@ -53,9 +53,9 @@ public class OpCheckClassListSkillCondition implements ISkillCondition
}
case TARGET:
{
if ((target != null) && !target.isPlayer())
if ((target != null) && target.isPlayer())
{
return _isWithin == _classIds.stream().anyMatch(classId -> classId == target.getActingPlayer().getClassId());
return _isWithin == _classIds.stream().anyMatch(classId -> classId.getId() == target.getActingPlayer().getClassId().getId());
}
break;
}

View File

@ -53,9 +53,9 @@ public class OpCheckClassListSkillCondition implements ISkillCondition
}
case TARGET:
{
if ((target != null) && !target.isPlayer())
if ((target != null) && target.isPlayer())
{
return _isWithin == _classIds.stream().anyMatch(classId -> classId == target.getActingPlayer().getClassId());
return _isWithin == _classIds.stream().anyMatch(classId -> classId.getId() == target.getActingPlayer().getClassId().getId());
}
break;
}

View File

@ -53,9 +53,9 @@ public class OpCheckClassListSkillCondition implements ISkillCondition
}
case TARGET:
{
if ((target != null) && !target.isPlayer())
if ((target != null) && target.isPlayer())
{
return _isWithin == _classIds.stream().anyMatch(classId -> classId == target.getActingPlayer().getClassId());
return _isWithin == _classIds.stream().anyMatch(classId -> classId.getId() == target.getActingPlayer().getClassId().getId());
}
break;
}

View File

@ -53,9 +53,9 @@ public class OpCheckClassListSkillCondition implements ISkillCondition
}
case TARGET:
{
if ((target != null) && !target.isPlayer())
if ((target != null) && target.isPlayer())
{
return _isWithin == _classIds.stream().anyMatch(classId -> classId == target.getActingPlayer().getClassId());
return _isWithin == _classIds.stream().anyMatch(classId -> classId.getId() == target.getActingPlayer().getClassId().getId());
}
break;
}

View File

@ -53,9 +53,9 @@ public class OpCheckClassListSkillCondition implements ISkillCondition
}
case TARGET:
{
if ((target != null) && !target.isPlayer())
if ((target != null) && target.isPlayer())
{
return _isWithin == _classIds.stream().anyMatch(classId -> classId == target.getActingPlayer().getClassId());
return _isWithin == _classIds.stream().anyMatch(classId -> classId.getId() == target.getActingPlayer().getClassId().getId());
}
break;
}