mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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;
|
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)) {
|
if (band == null || !attackersOfDefender.contains(band)) {
|
||||||
band = new AttackingBand(c, defender);
|
band = new AttackingBand(c, defender);
|
||||||
attackersOfDefender.add(band);
|
attackersOfDefender.add(band);
|
||||||
|
|||||||
Reference in New Issue
Block a user