Allow Flying Scroll to be used outdoor...

This commit is contained in:
Laurent Alonso(fr)
2020-05-23 19:03:33 +02:00
committed by Celtic Minstrel
parent 64878f2ac9
commit 04efbe763d

View File

@@ -1413,7 +1413,8 @@ bool cItem::use_outdoors() const {
auto status = eStatus(abil_data[1]);
if(status == eStatus::POISON || status == eStatus::DISEASE || status == eStatus::HASTE_SLOW || status == eStatus:: BLESS_CURSE)
return true;
}
} else if(ability == eItemAbil::AFFECT_PARTY_STATUS && abil_data[1] == int(ePartyStatus::FLIGHT))
return true;
return abil_chart[ability] & USE_OUTDOORS;
}