v0.9.1: fixed ring of wealth vfx not following moving chars
This commit is contained in:
parent
ad70ff52aa
commit
74ae04a616
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.effects;
|
package com.shatteredpixel.shatteredpixeldungeon.effects;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
||||||
import com.watabou.gltextures.SmartTexture;
|
import com.watabou.gltextures.SmartTexture;
|
||||||
import com.watabou.gltextures.TextureCache;
|
import com.watabou.gltextures.TextureCache;
|
||||||
import com.watabou.glwrap.Blending;
|
import com.watabou.glwrap.Blending;
|
||||||
|
@ -110,7 +111,11 @@ public class Flare extends Visual {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Flare show( Visual visual, float duration ) {
|
public Flare show( Visual visual, float duration ) {
|
||||||
point( visual.center() );
|
if (visual instanceof CharSprite){
|
||||||
|
point(((CharSprite) visual).destinationCenter());
|
||||||
|
} else {
|
||||||
|
point(visual.center());
|
||||||
|
}
|
||||||
visual.parent.addToBack( this );
|
visual.parent.addToBack( this );
|
||||||
|
|
||||||
lifespan = this.duration = duration;
|
lifespan = this.duration = duration;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user