Skip to content

Commit

Permalink
Make target evaluations protected.
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-wilke committed Jan 6, 2021
1 parent 38d9238 commit 33d588b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/de/gurkenlabs/litiengine/abilities/effects/Effect.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,15 @@ protected boolean customTarget(ICombatEntity entity) {
return entity != null;
}

private boolean canAttackEntity(ICombatEntity entity) {
protected boolean canAttackEntity(ICombatEntity entity) {
return !entity.equals(this.getAbility().getExecutor()) && !entity.isFriendly(this.getAbility().getExecutor()) && !entity.isDead();
}

private boolean isAliveFriendlyEntity(ICombatEntity entity) {
protected boolean isAliveFriendlyEntity(ICombatEntity entity) {
return !entity.equals(this.getAbility().getExecutor()) && entity.isFriendly(this.getAbility().getExecutor()) && !entity.isDead();
}

private boolean isDeadFriendlyEntity(ICombatEntity entity) {
protected boolean isDeadFriendlyEntity(ICombatEntity entity) {
return !entity.equals(this.getAbility().getExecutor()) && entity.isFriendly(this.getAbility().getExecutor()) && entity.isDead();
}

Expand Down

0 comments on commit 33d588b

Please sign in to comment.