v1.2.1: fixed DK not targetable with thrown items or wands on his throne
This commit is contained in:
@@ -138,6 +138,10 @@ public class DwarfKing extends Mob {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean act() {
|
protected boolean act() {
|
||||||
|
if (pos == CityBossLevel.throne){
|
||||||
|
throwItems();
|
||||||
|
}
|
||||||
|
|
||||||
if (phase == 1) {
|
if (phase == 1) {
|
||||||
|
|
||||||
if (summonCooldown <= 0 && summonSubject(Dungeon.isChallenged(Challenges.STRONGER_BOSSES) ? 2 : 3)){
|
if (summonCooldown <= 0 && summonSubject(Dungeon.isChallenged(Challenges.STRONGER_BOSSES) ? 2 : 3)){
|
||||||
|
|||||||
+7
-3
@@ -114,9 +114,13 @@ public class Ballistica {
|
|||||||
int err = dA / 2;
|
int err = dA / 2;
|
||||||
while (Dungeon.level.insideMap(cell)) {
|
while (Dungeon.level.insideMap(cell)) {
|
||||||
|
|
||||||
//if we're in a wall, collide with the previous cell along the path.
|
//if we're in solid terrain, and there's no char there, collide with the previous cell.
|
||||||
//we don't use solid here because we don't want to stop short of closed doors
|
// we don't use solid here because we don't want to stop short of closed doors.
|
||||||
if (stopTerrain && cell != sourcePos && !Dungeon.level.passable[cell] && !Dungeon.level.avoid[cell]) {
|
if (stopTerrain
|
||||||
|
&& cell != sourcePos
|
||||||
|
&& !Dungeon.level.passable[cell]
|
||||||
|
&& !Dungeon.level.avoid[cell]
|
||||||
|
&& Actor.findChar(cell) == null) {
|
||||||
collide(path.get(path.size() - 1));
|
collide(path.get(path.size() - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user