Krakens no longer destroy player boats in peaceful mode

This commit is contained in:
Zeno Rogue 2021-12-12 20:35:18 +01:00
parent 3dde8d805a
commit 32bfdf42c3
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ EX bool monstersnear(cell *c, eMonster who) {
if(elec::affected(c2)) continue;
if(fast && c2->monst != moWitchSpeed) continue;
// Krakens just destroy boats
if(who == moPlayer && c2->monst == moKrakenT && c->wall == waBoat) {
if(who == moPlayer && c2->monst == moKrakenT && c->wall == waBoat && !peace::on) {
kraken_will_destroy_boat = true;
continue;
}

View File

@ -2981,7 +2981,7 @@ EX namespace kraken {
attackMonster(c2, AF_NORMAL | AF_MSG, c->monst);
sleep(c);
}
else for(int i=0; i<numplayers(); i++) if(playerpos(i) == c2) {
else for(int i=0; i<numplayers(); i++) if(playerpos(i) == c2 && !peace::on) {
if(isPlayerInBoatOn(c2, i)) {
addMessage(XLAT("%The1 destroys your boat!", moKrakenH));
dboat = true;