mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-31 01:20:23 +00:00
Fix werewolf AI being able to use items
This commit is contained in:
parent
4acc25f59c
commit
4f3995a4d8
@ -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…
x
Reference in New Issue
Block a user