v0.9.2b: ripper demons can no longer leap while rooted
This commit is contained in:
+3
-2
@@ -140,7 +140,7 @@ public class RipperDemon extends Mob {
|
|||||||
Ballistica b = new Ballistica(pos, leapPos, Ballistica.STOP_TARGET | Ballistica.STOP_SOLID);
|
Ballistica b = new Ballistica(pos, leapPos, Ballistica.STOP_TARGET | Ballistica.STOP_SOLID);
|
||||||
|
|
||||||
//check if leap pos is not obstructed by terrain
|
//check if leap pos is not obstructed by terrain
|
||||||
if (b.collisionPos != leapPos){
|
if (rooted || b.collisionPos != leapPos){
|
||||||
leapPos = -1;
|
leapPos = -1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -208,7 +208,8 @@ public class RipperDemon extends Mob {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (leapCooldown <= 0 && enemyInFOV && Dungeon.level.distance(pos, enemy.pos) >= 3) {
|
if (leapCooldown <= 0 && enemyInFOV && !rooted
|
||||||
|
&& Dungeon.level.distance(pos, enemy.pos) >= 3) {
|
||||||
|
|
||||||
int targetPos = enemy.pos;
|
int targetPos = enemy.pos;
|
||||||
if (lastEnemyPos != enemy.pos){
|
if (lastEnemyPos != enemy.pos){
|
||||||
|
|||||||
Reference in New Issue
Block a user