v0.7.4: fixed vision oddities with wards, and typos in ghost commands

This commit is contained in:
Evan Debenham 2019-07-13 00:27:37 -04:00
parent 0534c6010c
commit a02a34feaf
3 changed files with 15 additions and 6 deletions

View File

@ -96,6 +96,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.Scroll;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfMagicMapping;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfUpgrade;
import com.shatteredpixel.shatteredpixeldungeon.items.wands.WandOfLivingEarth;
import com.shatteredpixel.shatteredpixeldungeon.items.wands.WandOfWarding;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.SpiritBow;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments.Blocking;
@ -1056,9 +1057,11 @@ public class Hero extends Char {
}
}
if (target != null && (QuickSlotButton.lastTarget == null ||
!QuickSlotButton.lastTarget.isAlive() ||
!fieldOfView[QuickSlotButton.lastTarget.pos])){
Char lastTarget = QuickSlotButton.lastTarget;
if (target != null && (lastTarget == null ||
!lastTarget.isAlive() ||
!fieldOfView[lastTarget.pos]) ||
(lastTarget instanceof WandOfWarding.Ward && mindVisionEnemies.contains(lastTarget))){
QuickSlotButton.target(target);
}

View File

@ -326,6 +326,12 @@ public class WandOfWarding extends Wand {
((WardSprite)sprite).updateTier(tier);
}
@Override
public void destroy() {
super.destroy();
Dungeon.observe();
}
@Override
public boolean canInteract(Hero h) {
return true;

View File

@ -281,8 +281,8 @@ items.artifacts.driedrose$ghosthero.player_killed_2=I couldn't help them...
items.artifacts.driedrose$ghosthero.player_killed_3=Not like this...
items.artifacts.driedrose$ghosthero.direct_prompt=What should I do?
items.artifacts.driedrose$ghosthero.directed_follow_1=Okay, I'll follow you
items.artifacts.driedrose$ghosthero.directed_follow_2=I'll fall in behind you
items.artifacts.driedrose$ghosthero.directed_follow_1=Okay, I'll follow you.
items.artifacts.driedrose$ghosthero.directed_follow_2=I'll fall in behind you.
items.artifacts.driedrose$ghosthero.directed_follow_3=Following you...
items.artifacts.driedrose$ghosthero.directed_follow_4=Okay, let's go!
items.artifacts.driedrose$ghosthero.directed_follow_5=I've got your back.