v2.5.0: fixed deferred damage being postponed on save/load
This commit is contained in:
+4
-10
@@ -123,17 +123,11 @@ public class Viscosity extends Glyph {
|
|||||||
damage = bundle.getInt( DAMAGE );
|
damage = bundle.getInt( DAMAGE );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean attachTo( Char target ) {
|
|
||||||
if (super.attachTo( target )) {
|
|
||||||
postpone( TICK );
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void prolong( int damage ) {
|
public void prolong( int damage ) {
|
||||||
|
if (this.damage == 0){
|
||||||
|
//wait 1 turn before damaging if this is freshly applied
|
||||||
|
postpone(TICK);
|
||||||
|
}
|
||||||
this.damage += damage;
|
this.damage += damage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user