Im having this issue in my testing module where I am coding AI improvements.
I am working on the shapechange AI improvement and noticed that I can iterrupt the dragon shape if I score critical hit. Afaik this should not happen, dragon shape is feat and even the spell that feat triggers doesn't require concentration. Module has no haks and I removed everything from patch, override and reverted game into 1.69 version just to make sure. Still the same issue.
ai code snippet
//not in polymorph
if(!GetLocalInt(OBJECT_SELF,"70_ALLOW_SHAPECHANGE")) return FALSE;//not allowed to polymorph
if(GetHasFeat(FEAT_EPIC_WILD_SHAPE_DRAGON))
{SpeakString("turning into dragon");
ClearAllActions();
ActionUseFeat(FEAT_EPIC_WILD_SHAPE_DRAGON,OBJECT_SELF);
return TRUE;
}
else if(GetHasFeat(FEAT_EPIC_WILD_SHAPE_UNDEAD))
{
ClearAllActions();
ActionUseFeat(FEAT_EPIC_WILD_SHAPE_UNDEAD,OBJECT_SELF);
return TRUE;
}
My test npc will say "talent shapechange" following with "turning into dragon", and uses the feat with the cast animation, then my toon score critical hit and it gets canceled by the classic "interrupt spell noise", then creature prints "talent spell attack" and dragon shape wont happen.
Does anyone know hows that possible? Is it bug in ActionUseFeat?