mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 22:53:53 +00:00
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;
|
||||
// Default to hand-to-hand combat
|
||||
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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue