SAI - flee for assist


I made a SmartScript and have used the action ‘flee for assist’ (SMART_ACTION_FLEE_FOR_ASSIST, 25).

The creature is fleeing but not searching assistance. The other creatures have same family and faction. Is there something else to do ?

branch and revision?

3.3.5a and rev. 9a91c3f49aed

My creature is neutral. May this is the reason ?

Perhaps this should be in the issue tracker since it should work. Don’t forget to post code to reproduce the issue.

Here is the solution:

Creature.cpp Creature::CanAssistTo()

In this method are different restrictions when the assistance can fail. F.ex. neutral faction and some flags are not allowed.