1
0
Fork 0
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:
scrawl 2014-12-14 19:15:43 +01:00
parent 4acc25f59c
commit 4f3995a4d8

View file

@ -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))
{