Make flight ability usable outdoors
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user