forked from teamnwah/openmw-tes3coop
Fix werewolf AI being able to use items
This commit is contained in:
parent
4acc25f59c
commit
4f3995a4d8
1 changed files with 2 additions and 0 deletions
|
@ -454,6 +454,8 @@ namespace MWMechanics
|
||||||
float bestActionRating = 0.f;
|
float bestActionRating = 0.f;
|
||||||
// Default to hand-to-hand combat
|
// Default to hand-to-hand combat
|
||||||
boost::shared_ptr<Action> bestAction (new ActionWeapon(MWWorld::Ptr()));
|
boost::shared_ptr<Action> bestAction (new ActionWeapon(MWWorld::Ptr()));
|
||||||
|
if (actor.getClass().isNpc() && actor.getClass().getNpcStats(actor).isWerewolf())
|
||||||
|
return bestAction;
|
||||||
|
|
||||||
if (actor.getClass().hasInventoryStore(actor))
|
if (actor.getClass().hasInventoryStore(actor))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue