mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:15:32 +00:00
Merged pull request #1840
This commit is contained in:
commit
d7718aae9b
2 changed files with 7 additions and 3 deletions
|
@ -75,6 +75,7 @@
|
||||||
Bug #4510: Division by zero in MWMechanics::CreatureStats::setAttribute
|
Bug #4510: Division by zero in MWMechanics::CreatureStats::setAttribute
|
||||||
Bug #4519: Knockdown does not discard movement in the 1st-person mode
|
Bug #4519: Knockdown does not discard movement in the 1st-person mode
|
||||||
Bug #4539: Paper Doll is affected by GUI scaling
|
Bug #4539: Paper Doll is affected by GUI scaling
|
||||||
|
Bug #4545: Creatures flee from werewolves
|
||||||
Feature #2606: Editor: Implemented (optional) case sensitive global search
|
Feature #2606: Editor: Implemented (optional) case sensitive global search
|
||||||
Feature #3083: Play animation when NPC is casting spell via script
|
Feature #3083: Play animation when NPC is casting spell via script
|
||||||
Feature #3103: Provide option for disposition to get increased by successful trade
|
Feature #3103: Provide option for disposition to get increased by successful trade
|
||||||
|
|
|
@ -494,11 +494,14 @@ namespace MWMechanics
|
||||||
|
|
||||||
static const int iWereWolfLevelToAttack = gmst.find("iWereWolfLevelToAttack")->getInt();
|
static const int iWereWolfLevelToAttack = gmst.find("iWereWolfLevelToAttack")->getInt();
|
||||||
|
|
||||||
if (enemy.getClass().isNpc() && enemy.getClass().getNpcStats(enemy).isWerewolf() && stats.getLevel() < iWereWolfLevelToAttack)
|
if (actor.getClass().isNpc() && enemy.getClass().isNpc())
|
||||||
|
{
|
||||||
|
if (enemy.getClass().getNpcStats(enemy).isWerewolf() && stats.getLevel() < iWereWolfLevelToAttack)
|
||||||
{
|
{
|
||||||
static const int iWereWolfFleeMod = gmst.find("iWereWolfFleeMod")->getInt();
|
static const int iWereWolfFleeMod = gmst.find("iWereWolfFleeMod")->getInt();
|
||||||
rating = iWereWolfFleeMod;
|
rating = iWereWolfFleeMod;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (rating != 0.0f)
|
if (rating != 0.0f)
|
||||||
rating += getFightDistanceBias(actor, enemy);
|
rating += getFightDistanceBias(actor, enemy);
|
||||||
|
|
Loading…
Reference in a new issue