v0.2.4d: fixed a bug where tengu could attack through charm
This commit is contained in:
parent
28bb59af57
commit
4a224d7828
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user