Fix werewolf AI being able to use items

moveref
scrawl 10 years ago
parent 4acc25f59c
commit 4f3995a4d8

@ -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…
Cancel
Save