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