mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08: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;
|
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() {
|
public void clear() {
|
||||||
groups.clear();
|
groups.clear();
|
||||||
defenders.clear();
|
defenders.clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue