Fixed OpCheckAbnormalSkillCondition target NPE.

This commit is contained in:
MobiusDev
2019-01-21 02:24:54 +00:00
parent d95af0beab
commit e2461174d7
10 changed files with 10 additions and 10 deletions

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}

View File

@@ -53,7 +53,7 @@ public class OpCheckAbnormalSkillCondition implements ISkillCondition
}
case TARGET:
{
if (target.isCharacter())
if ((target != null) && target.isCharacter())
{
return ((L2Character) target).getEffectList().hasAbnormalType(_type, info -> (info.getSkill().getAbnormalLvl() >= _level)) == _hasAbnormal;
}