Disabled multiple ZPM-s on a Field
A tesztek szerint működik, 10 percig próbálkoztam vele :D
This commit is contained in:
parent
2404f55bdf
commit
a1568774ca
@ -227,7 +227,7 @@ public class Game {
|
||||
source = compare;
|
||||
}
|
||||
|
||||
while (!source.canHazZPM()) {
|
||||
while (!source.canHazZPM() || source.hasZPM()) {
|
||||
int newSourceCounter = 0;
|
||||
|
||||
for (int i = 0; i < dungeon.getMapHeight(); i++) {
|
||||
@ -241,7 +241,7 @@ public class Game {
|
||||
if (compare != null) {
|
||||
source = compare;
|
||||
if (!compare.hasZPM() && (compare.playerBaseOnTile == null)) {
|
||||
if (source.canHazZPM()) {
|
||||
if (source.canHazZPM() && !source.hasZPM()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user