v2.4.2: fixed dagger blink ability calling hero.next early
This commit is contained in:
+1
-1
@@ -121,7 +121,6 @@ public class Dagger extends MeleeWeapon {
|
|||||||
|
|
||||||
wep.beforeAbilityUsed(hero, null);
|
wep.beforeAbilityUsed(hero, null);
|
||||||
Buff.affect(hero, Invisibility.class, invisTurns-1); //1 fewer turns as ability is instant
|
Buff.affect(hero, Invisibility.class, invisTurns-1); //1 fewer turns as ability is instant
|
||||||
hero.next();
|
|
||||||
|
|
||||||
Dungeon.hero.sprite.turnTo( Dungeon.hero.pos, target);
|
Dungeon.hero.sprite.turnTo( Dungeon.hero.pos, target);
|
||||||
Dungeon.hero.pos = target;
|
Dungeon.hero.pos = target;
|
||||||
@@ -134,6 +133,7 @@ public class Dagger extends MeleeWeapon {
|
|||||||
CellEmitter.get( Dungeon.hero.pos ).burst( Speck.factory( Speck.WOOL ), 6 );
|
CellEmitter.get( Dungeon.hero.pos ).burst( Speck.factory( Speck.WOOL ), 6 );
|
||||||
Sample.INSTANCE.play( Assets.Sounds.PUFF );
|
Sample.INSTANCE.play( Assets.Sounds.PUFF );
|
||||||
|
|
||||||
|
hero.next();
|
||||||
wep.afterAbilityUsed(hero);
|
wep.afterAbilityUsed(hero);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user