v0.2.4d: fixed a bug where tengu could attack through charm

This commit is contained in:
Evan Debenham 2015-03-20 15:14:57 -04:00
parent 28bb59af57
commit 4a224d7828

View File

@ -115,7 +115,7 @@ public class Tengu extends Mob {
@Override
protected boolean canAttack( Char enemy ) {
return Ballistica.cast( pos, enemy.pos, false, true ) == enemy.pos;
return Ballistica.cast( pos, enemy.pos, false, true ) == enemy.pos && !isCharmedBy( enemy );
}
@Override