|
|
|
@ -1785,8 +1785,8 @@ namespace MWMechanics
|
|
|
|
|
if (ptr.getClass().isNpc())
|
|
|
|
|
disposition = getDerivedDisposition(ptr, true);
|
|
|
|
|
|
|
|
|
|
int fight = std::max(0, ptr.getClass().getCreatureStats(ptr).getAiSetting(CreatureStats::AI_Fight).getModified()
|
|
|
|
|
+ static_cast<int>(getFightDistanceBias(ptr, target) + getFightDispositionBias(static_cast<float>(disposition))));
|
|
|
|
|
int fight = ptr.getClass().getCreatureStats(ptr).getAiSetting(CreatureStats::AI_Fight).getModified()
|
|
|
|
|
+ static_cast<int>(getFightDistanceBias(ptr, target) + getFightDispositionBias(static_cast<float>(disposition)));
|
|
|
|
|
|
|
|
|
|
if (ptr.getClass().isNpc() && target.getClass().isNpc())
|
|
|
|
|
{
|
|
|
|
|