v0.7.2: even more bugfixes:
- fixed rankings windows being able to be stacked (caused crashes) - fixed visual bugs caused by stacked teleportation effects - fixed darts being counted as melee weapons for swift enchant
This commit is contained in:
parent
616de2db3d
commit
e383c285ec
|
@ -211,7 +211,7 @@ public class ScrollOfTeleportation extends Scroll {
|
||||||
ch.sprite.interruptMotion();
|
ch.sprite.interruptMotion();
|
||||||
|
|
||||||
ch.move( pos );
|
ch.move( pos );
|
||||||
ch.sprite.place( pos );
|
if (ch.pos == pos) ch.sprite.place( pos );
|
||||||
|
|
||||||
if (ch.invisible == 0) {
|
if (ch.invisible == 0) {
|
||||||
ch.sprite.alpha( 0 );
|
ch.sprite.alpha( 0 );
|
||||||
|
|
|
@ -83,7 +83,9 @@ public class Dart extends MissileWeapon {
|
||||||
@Override
|
@Override
|
||||||
public int proc(Char attacker, Char defender, int damage) {
|
public int proc(Char attacker, Char defender, int damage) {
|
||||||
if (bow != null && bow.enchantment != null && attacker.buff(MagicImmune.class) == null){
|
if (bow != null && bow.enchantment != null && attacker.buff(MagicImmune.class) == null){
|
||||||
damage = bow.enchantment.proc(bow, attacker, defender, damage);
|
level(bow.level());
|
||||||
|
damage = bow.enchantment.proc(this, attacker, defender, damage);
|
||||||
|
level(0);
|
||||||
}
|
}
|
||||||
return super.proc(attacker, defender, damage);
|
return super.proc(attacker, defender, damage);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class WndRanking extends WndTabbed {
|
||||||
private static final int WIDTH = 115;
|
private static final int WIDTH = 115;
|
||||||
private static final int HEIGHT = 144;
|
private static final int HEIGHT = 144;
|
||||||
|
|
||||||
private Thread thread;
|
private static Thread thread;
|
||||||
private String error = null;
|
private String error = null;
|
||||||
|
|
||||||
private Image busy;
|
private Image busy;
|
||||||
|
@ -62,6 +62,11 @@ public class WndRanking extends WndTabbed {
|
||||||
super();
|
super();
|
||||||
resize( WIDTH, HEIGHT );
|
resize( WIDTH, HEIGHT );
|
||||||
|
|
||||||
|
if (thread != null){
|
||||||
|
hide();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
thread = new Thread() {
|
thread = new Thread() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user