|
|
|
@ -343,9 +343,9 @@ namespace MWMechanics
|
|
|
|
|
return mLastHitObject;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool CreatureStats::canUsePower(const std::string &power)
|
|
|
|
|
bool CreatureStats::canUsePower(const std::string &power) const
|
|
|
|
|
{
|
|
|
|
|
std::map<std::string, MWWorld::TimeStamp>::iterator it = mUsedPowers.find(power);
|
|
|
|
|
std::map<std::string, MWWorld::TimeStamp>::const_iterator it = mUsedPowers.find(power);
|
|
|
|
|
if (it == mUsedPowers.end() || it->second + 24 <= MWBase::Environment::get().getWorld()->getTimeStamp())
|
|
|
|
|
return true;
|
|
|
|
|
else
|
|
|
|
|