Make flight ability usable outdoors

This commit is contained in:
2023-01-05 22:21:52 -07:00
committed by Celtic Minstrel
parent 261f46b0b5
commit baf8bfd5c7
2 changed files with 5 additions and 0 deletions

View File

@@ -1409,6 +1409,8 @@ bool cItem::use_outdoors() const {
auto spell = eSpell(abil_data[1]);
int when = (*spell).when_cast;
return when & WHEN_OUTDOORS;
} else if(ability == eItemAbil::AFFECT_PARTY_STATUS && abil_data[1] == int(ePartyStatus::FLIGHT)) {
return true;
} else if(ability == eItemAbil::AFFECT_STATUS) {
auto status = eStatus(abil_data[1]);
if(status == eStatus::POISON || status == eStatus::DISEASE || status == eStatus::HASTE_SLOW || status == eStatus:: BLESS_CURSE)