v3.0.2: talisman of foresight now detects hiding mimics
This commit is contained in:
@@ -32,6 +32,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.MagicImmune;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Regeneration;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Regeneration;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mimic;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.effects.CheckedCell;
|
import com.shatteredpixel.shatteredpixeldungeon.effects.CheckedCell;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.rings.RingOfEnergy;
|
import com.shatteredpixel.shatteredpixeldungeon.items.rings.RingOfEnergy;
|
||||||
@@ -187,7 +188,9 @@ public class TalismanOfForesight extends Artifact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Char ch = Actor.findChar(cell);
|
Char ch = Actor.findChar(cell);
|
||||||
if (ch != null && ch.alignment != Char.Alignment.NEUTRAL && ch.alignment != curUser.alignment){
|
if (ch != null
|
||||||
|
&& (ch.alignment != Char.Alignment.NEUTRAL || ch instanceof Mimic)
|
||||||
|
&& ch.alignment != curUser.alignment){
|
||||||
Buff.append(curUser, CharAwareness.class, 5 + 2*level()).charID = ch.id();
|
Buff.append(curUser, CharAwareness.class, 5 + 2*level()).charID = ch.id();
|
||||||
|
|
||||||
artifactProc(ch, visiblyUpgraded(), (int)(3 + dist*1.08f));
|
artifactProc(ch, visiblyUpgraded(), (int)(3 + dist*1.08f));
|
||||||
|
|||||||
Reference in New Issue
Block a user