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:
muskenum 2016-05-16 18:01:37 +02:00
parent 2404f55bdf
commit a1568774ca
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}