Some work on skills.
Contributed by hitnar.
This commit is contained in:
@ -77,6 +77,7 @@ public abstract class L2Object extends ListenersContainer implements IIdentifiab
|
||||
private final AtomicInteger _instanceId = new AtomicInteger(0);
|
||||
private boolean _isVisible;
|
||||
private boolean _isInvisible;
|
||||
private boolean _isTargetable = true;
|
||||
private ObjectKnownList _knownList;
|
||||
|
||||
public L2Object(int objectId)
|
||||
@ -473,7 +474,16 @@ public abstract class L2Object extends ListenersContainer implements IIdentifiab
|
||||
*/
|
||||
public boolean isTargetable()
|
||||
{
|
||||
return true;
|
||||
return _isTargetable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set value of Targetable (isTargetable() function)
|
||||
* @param value Boolean
|
||||
*/
|
||||
public void setTargetable(boolean value)
|
||||
{
|
||||
_isTargetable = value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -694,9 +694,10 @@ public class L2DoorInstance extends L2Character
|
||||
}
|
||||
}
|
||||
|
||||
public void setTargetable(boolean b)
|
||||
@Override
|
||||
public void setTargetable(boolean value)
|
||||
{
|
||||
_isTargetable = b;
|
||||
_isTargetable = value;
|
||||
broadcastStatusUpdate();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user