mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
- Experimental fix for a single creature being declared as an Attacker twice
This commit is contained in:
@@ -124,6 +124,12 @@ public class Combat {
|
||||
return;
|
||||
}
|
||||
|
||||
// This is trying to fix the issue of an attacker existing in two bands at once
|
||||
AttackingBand existingBand = getBandOfAttacker(c);
|
||||
if (existingBand != null) {
|
||||
existingBand.removeAttacker(c);
|
||||
}
|
||||
|
||||
if (band == null || !attackersOfDefender.contains(band)) {
|
||||
band = new AttackingBand(c, defender);
|
||||
attackersOfDefender.add(band);
|
||||
|
||||
Reference in New Issue
Block a user