mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Combat - Fixed a bug were forced attackers could be set to not attacking.
This commit is contained in:
parent
53465ec0c9
commit
3e789ccb1f
1 changed files with 11 additions and 0 deletions
|
@ -88,6 +88,17 @@ public class Combat implements Serializable, Copyable<Combat> {
|
|||
blockingGroups.put(group.getKey(), group.getValue());
|
||||
}
|
||||
this.useToughnessForDamage = combat.useToughnessForDamage;
|
||||
for (Map.Entry<UUID, Set<UUID>> group : combat.numberCreaturesDefenderAttackedBy.entrySet()) {
|
||||
this.numberCreaturesDefenderAttackedBy.put(group.getKey(), group.getValue());
|
||||
}
|
||||
|
||||
for (Map.Entry<UUID, Set<UUID>> group : combat.creatureMustBlockAttackers.entrySet()) {
|
||||
this.creatureMustBlockAttackers.put(group.getKey(), group.getValue());
|
||||
}
|
||||
for (Map.Entry<UUID, Set<UUID>> group : combat.creaturesForcedToAttack.entrySet()) {
|
||||
this.creaturesForcedToAttack.put(group.getKey(), group.getValue());
|
||||
}
|
||||
this.maxAttackers = combat.maxAttackers;
|
||||
}
|
||||
|
||||
public List<CombatGroup> getGroups() {
|
||||
|
|
Loading…
Reference in a new issue