* Combat - Fixed a bug were forced attackers could be set to not attacking.

This commit is contained in:
LevelX2 2014-08-17 20:38:33 +02:00
parent 53465ec0c9
commit 3e789ccb1f

View file

@ -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() {