1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-24 06:50:09 +00:00

fixed incorrect Raider killing

This commit is contained in:
Zeno Rogue 2020-03-07 23:44:13 +01:00
parent a0abb831f3
commit 664db4ae39

View File

@ -496,9 +496,9 @@ bool switch_lhu_in(eLand l) {
void apply_chaos() {
cell *ca = (cwt+1).cpeek();
cell *cb = (cwt-1).cpeek();
if(!items[itOrbChaos] || chaos_forbidden(ca) || chaos_forbidden(cb)) return;
if(ca && is_paired(ca->monst)) killMonster(ca, moPlayer);
if(cb && is_paired(cb->monst)) killMonster(cb, moPlayer);
if(!items[itOrbChaos] || chaos_forbidden(ca) || chaos_forbidden(cb)) return;
changes.ccell(ca);
changes.ccell(cb);
gcell coa = *ca;