Viziers were immune to some attacks in illogical circumstances -- this is no longer the case

This commit is contained in:
Zeno Rogue committed 2022-04-21 11:59:15 +02:00
1 parent 91faa3faf3
commit 6d1ded7fd4
2 files changed
-7

No files matched your search

-3
View File
@@ -173,9 +173,6 @@ EX bool canAttack(cell *c1, eMonster m1, cell *c2, eMonster m2, flagtype flags)
if(m2 == moFlailer && !c2->stuntime)
if(!(flags & (AF_MAGIC | AF_TOUGH | AF_EAT | AF_HORNS | AF_LANCE | AF_BACK | AF_SWORD_INTO | AF_BULL | AF_CRUSH))) return false;
if(m2 == moVizier && c2->hitpoints > 1 && !c2->stuntime)
if(!(flags & (AF_MAGIC | AF_TOUGH | AF_EAT | AF_HORNS | AF_LANCE | AF_BACK | AF_FAST | AF_BULL | AF_CRUSH))) return false;
return true;
}