v0.3.0: reworked lightning effect and wand of lightning
This commit is contained in:
@@ -24,8 +24,6 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.Lightning;
|
||||
|
||||
public class ShamanSprite extends MobSprite {
|
||||
|
||||
private int[] points = new int[2];
|
||||
|
||||
public ShamanSprite() {
|
||||
super();
|
||||
|
||||
@@ -51,10 +49,8 @@ public class ShamanSprite extends MobSprite {
|
||||
}
|
||||
|
||||
public void zap( int pos ) {
|
||||
|
||||
points[0] = ch.pos;
|
||||
points[1] = pos;
|
||||
parent.add( new Lightning( points, 2, (Shaman)ch ) );
|
||||
|
||||
parent.add( new Lightning( ch.pos, pos, (Shaman)ch ) );
|
||||
|
||||
turnTo( ch.pos, pos );
|
||||
play( zap );
|
||||
|
||||
Reference in New Issue
Block a user