v3.0.2: fixed time freeze breaking recalled thrown runestones
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
package com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.FlavourBuff;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
||||
@@ -41,6 +42,7 @@ import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.HeroIcon;
|
||||
import com.watabou.utils.Bundle;
|
||||
import com.watabou.utils.Callback;
|
||||
import com.watabou.utils.Reflection;
|
||||
|
||||
public class RecallInscription extends ClericSpell {
|
||||
@@ -79,8 +81,15 @@ public class RecallInscription extends ClericSpell {
|
||||
if (item instanceof InventoryStone){
|
||||
((InventoryStone) item).directActivate();
|
||||
} else {
|
||||
//we're already on the render thread, but we want to delay this
|
||||
//as things like time freeze cancel can stop stone throwing from working
|
||||
ShatteredPixelDungeon.runOnRenderThread(new Callback() {
|
||||
@Override
|
||||
public void call() {
|
||||
item.doThrow(hero);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
onSpellCast(tome, hero);
|
||||
|
||||
Reference in New Issue
Block a user