v3.0.0: fixed PoM ally being summonable over walls, chasms, etc.
This commit is contained in:
+7
@@ -36,6 +36,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.abilities.ArmorAbility;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.abilities.ArmorAbility;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.BeamingRay;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.BeamingRay;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.ClericSpell;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.LifeLinkSpell;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.LifeLinkSpell;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.Stasis;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.Stasis;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob;
|
||||||
@@ -150,6 +151,12 @@ public class PowerOfMany extends ArmorAbility {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (!Dungeon.level.passable[target] || Dungeon.level.avoid[target]){
|
||||||
|
GLog.w(Messages.get(ClericSpell.class, "invalid_target"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ch = new LightAlly(hero.lvl);
|
ch = new LightAlly(hero.lvl);
|
||||||
ch.pos = target;
|
ch.pos = target;
|
||||||
GameScene.add((Mob) ch);
|
GameScene.add((Mob) ch);
|
||||||
|
|||||||
Reference in New Issue
Block a user