v3.1.0: fixed boomerang circleback detaching at animation start, not end
This commit is contained in:
@@ -125,6 +125,7 @@ public class HeavyBoomerang extends MissileWeapon {
|
||||
new Callback() {
|
||||
@Override
|
||||
public void call() {
|
||||
detach();
|
||||
if (returnTarget == target){
|
||||
if (!boomerang.spawnedForEffect) {
|
||||
if (target instanceof Hero && boomerang.doPickUp((Hero) target)) {
|
||||
@@ -153,7 +154,6 @@ public class HeavyBoomerang extends MissileWeapon {
|
||||
visual.alpha(0f);
|
||||
float duration = Dungeon.level.trueDistance(thrownPos, returnPos) / 20f;
|
||||
target.sprite.parent.add(new AlphaTweener(visual, 1f, duration));
|
||||
detach();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user