mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:53:51 +00:00
Fix broken AI for creatures with OnTarget spells (Bug #1927)
This commit is contained in:
parent
09042ba6d9
commit
07cd647e75
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ namespace MWMechanics
|
||||||
}
|
}
|
||||||
else //is creature
|
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)
|
weapRange = 150.0f; //TODO: use true attack range (the same problem in Creature::hit)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue