1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed a bug with Princess and Orb of Chaos

This commit is contained in:
Zeno Rogue 2020-03-06 14:22:44 +01:00
parent ca7f0cb4c3
commit 554b54e256

View File

@ -513,6 +513,10 @@ void apply_chaos() {
ca->mondir = ((cwt+1)+wstep-sb).spin;
if(cb->mondir < cb->type)
cb->mondir = ((cwt+1)+wstep-sa).spin;
if(isPrincess(ca) && !isPrincess(cb))
princess::move(movei{cb, ca, JUMP});
if(isPrincess(cb) && !isPrincess(ca))
princess::move(movei{ca, cb, JUMP});
}
bool pcmove::actual_move() {