mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
crossbow bolt now ignore rose restrictions on attack
This commit is contained in:
parent
0ec4e46bf0
commit
79f2940683
@ -151,7 +151,7 @@ EX bool canAttack(cell *c1, eMonster m1, cell *c2, eMonster m2, flagtype flags)
|
|||||||
if(!(flags & (AF_GUN | AF_SWORD | AF_SWORD_INTO | AF_MAGIC | AF_PLAGUE)))
|
if(!(flags & (AF_GUN | AF_SWORD | AF_SWORD_INTO | AF_MAGIC | AF_PLAGUE)))
|
||||||
if(c1 != c2 && !logical_adjacent(c1, m1, c2)) return false;
|
if(c1 != c2 && !logical_adjacent(c1, m1, c2)) return false;
|
||||||
|
|
||||||
if(!(flags & (AF_LANCE | AF_STAB | AF_BACK | AF_APPROACH | AF_GUN | AF_MAGIC | AF_PLAGUE | AF_SIDE)))
|
if(!(flags & (AF_LANCE | AF_STAB | AF_BACK | AF_APPROACH | AF_GUN | AF_MAGIC | AF_PLAGUE | AF_SIDE | AF_BOW)))
|
||||||
if(c1 && c2 && againstRose(c1, c2) && !ignoresSmell(m1))
|
if(c1 && c2 && againstRose(c1, c2) && !ignoresSmell(m1))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user