1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-07 22:49:54 +00:00

fixed Orb of Chaos not calling moveItem

This commit is contained in:
Zeno Rogue 2024-02-22 21:08:39 +01:00
parent 650108bad3
commit 3b1918535f

View File

@ -699,6 +699,11 @@ void apply_chaos() {
markOrb(itOrbChaos); markOrb(itOrbChaos);
copy_metadata(ca, &cob); copy_metadata(ca, &cob);
copy_metadata(cb, &coa); copy_metadata(cb, &coa);
ca->item = coa.item;
cb->item = cob.item;
moveItem(ca, cb, false);
if(!switch_lhu_in(ca->land)) ca->LHU = coa.LHU; if(!switch_lhu_in(ca->land)) ca->LHU = coa.LHU;
if(!switch_lhu_in(cb->land)) cb->LHU = cob.LHU; if(!switch_lhu_in(cb->land)) cb->LHU = cob.LHU;
if(ca->monst && !(isFriendly(ca) && markOrb(itOrbEmpathy))) { if(ca->monst && !(isFriendly(ca) && markOrb(itOrbEmpathy))) {