* Ral Zarek - Fixed target handling of ability one.

This commit is contained in:
LevelX2 2016-09-14 17:11:18 +02:00
parent 317ba7fd87
commit ce94e573e4
2 changed files with 27 additions and 43 deletions

View file

@ -46,6 +46,10 @@ public class AnotherTargetPredicate implements ObjectSourcePlayerPredicate<Objec
private final int targetTag;
/**
*
* @param targetTag tag of the target the filter belongs to
*/
public AnotherTargetPredicate(int targetTag) {
this.targetTag = targetTag;
}
@ -58,7 +62,7 @@ public class AnotherTargetPredicate implements ObjectSourcePlayerPredicate<Objec
if (target.getTargetTag() > 0 // target is included in the target group to check
&& target.getTargetTag() != targetTag // it's not the target of this predicate
&& target.getTargets().contains(input.getObject().getId())) { // if the uuid already is used for another target in the group it's not allowed here
return false;
return false;
}
}
}