mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
added GetBlockers
This commit is contained in:
parent
422c5d59a5
commit
59f8e3e324
1 changed files with 8 additions and 0 deletions
|
@ -64,6 +64,14 @@ public class Combat implements Serializable {
|
|||
return attackers;
|
||||
}
|
||||
|
||||
public List<UUID> getBlockers() {
|
||||
List<UUID> blockers = new ArrayList<UUID>();
|
||||
for (CombatGroup group: groups) {
|
||||
blockers.addAll(group.blockers);
|
||||
}
|
||||
return blockers;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
groups.clear();
|
||||
defenders.clear();
|
||||
|
|
Loading…
Reference in a new issue