1
0
Fork 1
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:
scrawl 2014-09-18 03:19:13 +02:00
parent 09042ba6d9
commit 07cd647e75

View file

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