1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 22:23:18 +00:00

Merge pull request #197 from jruderman/f5

Kraken Tentacle attacks now obey Warp restrictions
This commit is contained in:
Zeno Rogue 2021-07-10 09:32:52 +02:00 committed by GitHub
commit d7474b23a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2977,6 +2977,7 @@ EX namespace kraken {
for(int i=0; i<isize(dcal); i++) {
cell *c = dcal[i];
if(c->monst == moKrakenT && !c->stuntime) forCellEx(c2, c) {
if (!logical_adjacent(c2,moKrakenT,c)) continue;
bool dboat = false;
if(c2->monst && canAttack(c, moKrakenT, c2, c2->monst, AF_ONLY_FBUG)) {
attackMonster(c2, AF_NORMAL | AF_MSG, c->monst);