|
|
|
@ -241,7 +241,7 @@ namespace MWScript
|
|
|
|
|
{
|
|
|
|
|
MWWorld::Ptr ptr = R()(runtime);
|
|
|
|
|
|
|
|
|
|
runtime.push(ptr.getClass().getCreatureStats (ptr).getAiSetting (mIndex).getModified());
|
|
|
|
|
runtime.push(ptr.getClass().getCreatureStats (ptr).getAiSetting (mIndex).getModified(false));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
template<class R>
|
|
|
|
@ -276,9 +276,7 @@ namespace MWScript
|
|
|
|
|
Interpreter::Type_Integer value = runtime[0].mInteger;
|
|
|
|
|
runtime.pop();
|
|
|
|
|
|
|
|
|
|
MWMechanics::Stat<int> stat = ptr.getClass().getCreatureStats(ptr).getAiSetting(mIndex);
|
|
|
|
|
stat.setModified(value, 0);
|
|
|
|
|
ptr.getClass().getCreatureStats(ptr).setAiSetting(mIndex, stat);
|
|
|
|
|
ptr.getClass().getCreatureStats(ptr).setAiSetting(mIndex, value);
|
|
|
|
|
ptr.getClass().setBaseAISetting(ptr.getCellRef().getRefId(), mIndex, value);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|