v0.9.0: fixed ethereal chains spending hero time before pulling
This commit is contained in:
+10
-8
@@ -173,13 +173,14 @@ public class EtherealChains extends Artifact {
|
|||||||
public void call() {
|
public void call() {
|
||||||
Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() {
|
Actor.add(new Pushing(enemy, enemy.pos, pulledPos, new Callback() {
|
||||||
public void call() {
|
public void call() {
|
||||||
|
enemy.pos = pulledPos;
|
||||||
Dungeon.level.occupyCell(enemy);
|
Dungeon.level.occupyCell(enemy);
|
||||||
|
Dungeon.observe();
|
||||||
|
GameScene.updateFog();
|
||||||
|
hero.spendAndNext(1f);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
enemy.pos = pulledPos;
|
hero.next();
|
||||||
Dungeon.observe();
|
|
||||||
GameScene.updateFog();
|
|
||||||
hero.spendAndNext(1f);
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
@@ -222,13 +223,14 @@ public class EtherealChains extends Artifact {
|
|||||||
public void call() {
|
public void call() {
|
||||||
Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() {
|
Actor.add(new Pushing(hero, hero.pos, newHeroPos, new Callback() {
|
||||||
public void call() {
|
public void call() {
|
||||||
|
hero.pos = newHeroPos;
|
||||||
Dungeon.level.occupyCell(hero);
|
Dungeon.level.occupyCell(hero);
|
||||||
|
hero.spendAndNext(1f);
|
||||||
|
Dungeon.observe();
|
||||||
|
GameScene.updateFog();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
hero.spendAndNext(1f);
|
hero.next();
|
||||||
hero.pos = newHeroPos;
|
|
||||||
Dungeon.observe();
|
|
||||||
GameScene.updateFog();
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user