Fixed L2Character isInFrontOfTarget method NPE.
This commit is contained in:
@@ -5911,10 +5911,9 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
|
||||
public boolean isInFrontOfTarget()
|
||||
{
|
||||
final L2Object target = _target;
|
||||
if (target.isCharacter())
|
||||
if ((_target != null) && _target.isCharacter())
|
||||
{
|
||||
return isInFrontOf((L2Character) target);
|
||||
return isInFrontOf((L2Character) _target);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user