private static void OnCreatureDamaged() { string script = GetBehaviourScript(OBJECT_SELF); if (string.IsNullOrWhiteSpace(script)) { return; } IAIBehaviour behaviour = GetAIBehaviour(script); behaviour.OnDamaged(OBJECT_SELF); }