mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
Fix broken AI for creatures with OnTarget spells (Bug #1927)
This commit is contained in:
parent
09042ba6d9
commit
07cd647e75
@ -320,7 +320,7 @@ namespace MWMechanics
|
||||
}
|
||||
else //is creature
|
||||
{
|
||||
weaptype = WeapType_HandToHand; //doesn't matter, should only reflect if it is melee or distant weapon
|
||||
weaptype = actorClass.getCreatureStats(actor).getDrawState() == DrawState_Spell ? WeapType_Spell : WeapType_HandToHand;
|
||||
weapRange = 150.0f; //TODO: use true attack range (the same problem in Creature::hit)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user