mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-21 11:03:13 -04:00
Moved duel checks from DuelPlayerService to their script.
This commit is contained in:
@@ -87,7 +87,7 @@ public class CreatureObject extends TangibleObject {
|
||||
|
||||
private List<CreatureObject> activeDuels = new SynchronizedList<CreatureObject>();
|
||||
|
||||
private List<CreatureObject> sentDuels = new SynchronizedList<CreatureObject>();
|
||||
private List<CreatureObject> sentDuels = new SynchronizedList<CreatureObject>();
|
||||
|
||||
public CreatureObject(long objectId) {
|
||||
super(objectId, BaselineType.CREO);
|
||||
@@ -804,6 +804,10 @@ public class CreatureObject extends TangibleObject {
|
||||
return isEnemy(otherObject) && otherPosture != Posture.INCAPACITATED && otherPosture != Posture.DEAD;
|
||||
}
|
||||
|
||||
public boolean sentDuelRequestToPlayer(CreatureObject player) {
|
||||
return sentDuels.contains(player);
|
||||
}
|
||||
|
||||
public List<CreatureObject> getActiveDuels() {
|
||||
return activeDuels;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user