Bug 184

Summary: AI of troll is broken
Product: Legacy Haven Reporter: wad <wad>
Component: ServerAssignee: loftar <fredrik>
Status: CONFIRMED ---    
Severity: critical CC: sahandhesar
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   

Description wad 2013-08-27 22:39:34 CEST
Troll uses ranged attack in melee combat.
It could be killed only by exploits.

http://www.youtube.com/watch?v=ku_1bbZSEbM
Comment 1 Xcom 2013-10-01 03:08:30 CEST
Trolls only do the ranged stone move if the target is to far away, can't be reached or if the target is standing directly in front of the player. The pathfinder probably gets confused and thinks the target is unreachable if the target is to close, otherwise the stone move works perfectly fine.

This video shows that the stone move only is broken when the target stands still and allows for the troll to get to close.

http://www.youtube.com/watch?v=d7PppghgkwI

Maybe a possible fix would be to have the troll check if the target is within its attack distance before doing the move. Something like preventing stone move if its target is inside a rectangle around the troll.