v0.6.3: ally mobs can no longer dodge attacks from the hero
This commit is contained in:
parent
2e20a30e82
commit
8514176cd8
|
@ -466,7 +466,9 @@ public abstract class Mob extends Char {
|
|||
@Override
|
||||
public int defenseSkill( Char enemy ) {
|
||||
boolean seen = enemySeen || (enemy == Dungeon.hero && !Dungeon.hero.canSurpriseAttack());
|
||||
if (seen && paralysed == 0) {
|
||||
if ( seen
|
||||
&& paralysed == 0
|
||||
&& !(alignment == Alignment.ALLY && enemy == Dungeon.hero)) {
|
||||
int defenseSkill = this.defenseSkill;
|
||||
defenseSkill *= RingOfAccuracy.enemyEvasionMultiplier( enemy );
|
||||
return defenseSkill;
|
||||
|
|
|
@ -566,7 +566,7 @@ public class DriedRose extends Artifact {
|
|||
public int defenseSkill(Char enemy) {
|
||||
int defense = super.defenseSkill(enemy);
|
||||
|
||||
if (rose != null && rose.armor != null && rose.armor.hasGlyph(Swiftness.class)){
|
||||
if (defense != 0 && rose != null && rose.armor != null && rose.armor.hasGlyph(Swiftness.class)){
|
||||
defense += 5 + rose.armor.level()*1.5f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user