mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-21 11:03:13 -04:00
Added support for AoE attacks in the combat engine
This commit is contained in:
@@ -798,6 +798,12 @@ public class CreatureObject extends TangibleObject {
|
||||
return items;
|
||||
}
|
||||
|
||||
public boolean isAttackable(CreatureObject otherObject) {
|
||||
Posture otherPosture = otherObject.getPosture();
|
||||
|
||||
return isEnemy(otherObject) && otherPosture != Posture.INCAPACITATED && otherPosture != Posture.DEAD;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnemy(TangibleObject otherObject) {
|
||||
boolean tangibleEnemy = super.isEnemy(otherObject);
|
||||
|
||||
Reference in New Issue
Block a user